racc commented on issue #6808:
URL: https://github.com/apache/hudi/issues/6808#issuecomment-1376748977
```java
public class MetaStoreTxnDbUtilPrep extends MetaStoreInitListener {
public MetaStoreTxnDbUtilPrep(Configuration config) {
super(config);
}
@Override
public void onInit(MetaStoreInitContext metaStoreInitContext) {
try {
TxnDbUtil.prepDb(new HiveConf(this.getConf(), HiveConf.class));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
// Psuedocode for setting Spark conf
.config("javax.jdo.option.ConnectionURL",
"jdbc:derby:;databaseName=APP;create=true")
.config("datanucleus.schema.autoCreateTables", "true")
.config("datanucleus.autoStartMechanism", "SchemaTable")
.config("hive.metastore.schema.verification", "false")
.config("hive.txn.strict.locking.mode", "false")
.config("hive.metastore.init.hooks",
MetaStoreTxnDbUtilPrep.class.getCanonicalName())
.config("spark.sql.warehouse.dir", <set to unique value>)
System.setProperty("derby.system.home", <set to unique value>)
```
FYI I was able to have some success with getting Iceberg working with the
above settings - used a MetaStore init hook to ensure Transaction related
tables were created...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]