Skip to content

Commit

Permalink
override more configs to avoid failuer connecting to postgre sql
Browse files Browse the repository at this point in the history
  • Loading branch information
WangTaoTheTonic committed May 22, 2015
1 parent 42c592a commit e3e683d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,12 @@ private[hive] object HiveContext {
val tempDir = Utils.createTempDir()
val localMetastore = new File(tempDir, "metastore").getAbsolutePath
Map(
"javax.jdo.option.ConnectionURL" -> s"jdbc:derby:;databaseName=$localMetastore;create=true")
"datanucleus.rdbms.datastoreAdapterClassName" -> "org.datanucleus.store.rdbms.adapter.DerbyAdapter",
"javax.jdo.option.ConnectionDriverName" -> "org.apache.derby.jdbc.EmbeddedDriver",
"javax.jdo.option.ConnectionPassword" -> "mine",
"javax.jdo.option.ConnectionURL" -> s"jdbc:derby:;databaseName=$localMetastore;create=true",
"javax.jdo.option.ConnectionUserName" -> "APP"
)
}

protected val primitiveTypes =
Expand Down

0 comments on commit e3e683d

Please sign in to comment.