Skip to content

Commit

Permalink
use com.mysql.cj.jdbc.Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjian Wu committed Oct 18, 2024
1 parent cc321cb commit ecf8c78
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ hive.metastore.fs.handler.class=com.netflix.metacat.connector.hive.metastore.Hiv
javax.jdo.option.name=embedded-fast-hive-metastore-shard
javax.jdo.option.username=metacat_user
javax.jdo.option.url=jdbc:mysql://hive-metastore-db:3306/shardfasthive?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=120&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
javax.jdo.option.driverClassName=com.mysql.jdbc.Driver
javax.jdo.option.driverClassName=com.mysql.cj.jdbc.Driver
javax.jdo.option.password=metacat_user_password
javax.jdo.option.jmxEnabled=true
javax.jdo.option.maxActive=10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ hive.metastore.fs.handler.class=com.netflix.metacat.connector.hive.metastore.Hiv
javax.jdo.option.name=embedded-fast-hive-metastore
javax.jdo.option.username=metacat_user
javax.jdo.option.url=jdbc:mysql://hive-metastore-db:3306/fasthive?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=120&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
javax.jdo.option.driverClassName=com.mysql.jdbc.Driver
javax.jdo.option.driverClassName=com.mysql.cj.jdbc.Driver
javax.jdo.option.password=metacat_user_password
javax.jdo.option.jmxEnabled=true
javax.jdo.option.maxActive=10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ hive.metastore.fs.handler.class=com.netflix.metacat.connector.hive.metastore.Hiv
javax.jdo.option.name=embedded-hive-metastore
javax.jdo.option.username=metacat_user
javax.jdo.option.url=jdbc:mysql://hive-metastore-db:3306/hive?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=latin1&autoReconnect=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
javax.jdo.option.driverClassName=com.mysql.jdbc.Driver
javax.jdo.option.driverClassName=com.mysql.cj.jdbc.Driver
javax.jdo.option.password=metacat_user_password
javax.jdo.option.jmxEnabled=true
javax.jdo.option.maxActive=10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ metacat.interceptor.enabled=false
javax.jdo.option.name=mysql-56-db
javax.jdo.option.url=jdbc:mysql://hive-metastore-db:3306/?useUnicode=true&characterEncoding=latin1&autoReconnect=true&rewriteBatchedStatements=true
javax.jdo.option.username=metacat_user
javax.jdo.option.driverClassName=com.mysql.jdbc.Driver
javax.jdo.option.driverClassName=com.mysql.cj.jdbc.Driver
javax.jdo.option.password=metacat_user_password
javax.jdo.option.jmxEnabled=true
javax.jdo.option.maxActive=10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ metacat.has-data-external=true
javax.jdo.option.name=s3-mysql-host
javax.persistence.jdbc.user=metacat_user
javax.persistence.jdbc.url=jdbc:mysql://hive-metastore-db:3306/s3?useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=300&rewriteBatchedStatements=true
javax.persistence.jdbc.driver=com.mysql.jdbc.Driver
javax.persistence.jdbc.driver=com.mysql.cj.jdbc.Driver
javax.persistence.schema-generation.database.action=none
javax.persistence.jdbc.password=metacat_user_password
javax.jdo.option.url=jdbc:mysql://hive-metastore-db:3306/s3?useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=300&rewriteBatchedStatements=true
javax.jdo.option.username=metacat_user
javax.jdo.option.driverClassName=com.mysql.jdbc.Driver
javax.jdo.option.driverClassName=ccom.mysql.cj.jdbc.Driver
javax.jdo.option.password=metacat_user_password
javax.jdo.option.jmxEnabled=true
javax.jdo.option.maxActive=10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

javax.jdo.option.url=jdbc:mysql://hive-metastore-db:3306/metacat?useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=120&rewriteBatchedStatements=true
javax.jdo.option.username=metacat_user
javax.jdo.option.driverClassName=com.mysql.jdbc.Driver
javax.jdo.option.driverClassName=com.mysql.cj.jdbc.Driver
javax.jdo.option.password=metacat_user_password
javax.jdo.option.jmxEnabled=true
javax.jdo.option.maxActive=50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,7 @@ class MetacatSmokeSpec extends Specification {
@Ignore
def "Delete definition metadata for non-existant #name"() {
when:
def metacatSource = Sql.newInstance('jdbc:mysql://hive-metastore-db:3306/metacat?useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=120&rewriteBatchedStatements=true', 'metacat_user','metacat_user_password', 'com.mysql.jdbc.Driver')
def metacatSource = Sql.newInstance('jdbc:mysql://hive-metastore-db:3306/metacat?useUnicode=true&characterEncoding=latin1&autoReconnect=true&sessionVariables=@@innodb_lock_wait_timeout=120&rewriteBatchedStatements=true', 'metacat_user','metacat_user_password', 'com.mysql.cj.jdbc.Driver')
metacatSource.execute("insert into definition_metadata(version,created_by,data,date_created,last_updated,last_updated_by,name) values (0,'test', '{}',now(), now(), 'test'," + name+ ")")
metadataApi.deleteDefinitionMetadata(name, false)
def list = metadataApi.getDefinitionMetadataList(null, null, null, null, null, null, name, null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class BaseSpec extends Specification {
props.setProperty('javax.jdo.option.password', mysqlServer.getPassword())
props.setProperty('javax.jdo.option.defaultTransactionIsolation', 'READ_COMMITTED')
props.setProperty('javax.jdo.option.defaultAutoCommit', 'false')
props.setProperty('javax.jdo.option.driverClassName', 'com.mysql.jdbc.Driver')
props.setProperty('javax.jdo.option.driverClassName', 'com.mysql.cj.jdbc.Driver')
URL url = Thread.currentThread().getContextClassLoader().getResource("usermetadata.properties")
Path filePath
if (url != null) {
Expand Down

0 comments on commit ecf8c78

Please sign in to comment.