haospotai edited a comment on issue #736: hoodie-hive-hundle don't have hive 
jars
URL: https://github.com/apache/incubator-hudi/issues/736#issuecomment-568327159
 
 
   > 
https://github.com/apache/incubator-hudi/blob/master/hudi-hive/run_sync_tool.sh#L30
 Adds in all the jars.. and we use the script in the docker setup successfully. 
Could you reproduce this in the docker setup we have and we can go from there? 
Trying to understand if this an HIVE_HOME config issue..
   
   Hi I add below code inside run_sync_tool, then It works , but I did not try 
it in docker
   ```shel
   if [ -z "$HIVE_CONF_DIR" ]; then
     echo "setting hive conf dir"
     HIVE_CONF_DIR="${HIVE_HOME}/conf"
   fi
   ```
   
   otherwise there will be throw this kind of exception
   
   ```java
   Caused by: org.datanucleus.exceptions.NucleusException: Attempt to invoke 
the "dbcp-builtin" plugin to create a ConnectionPool gave an error : The 
specified datastore driver ("org.apache.derby.jdbc.EmbeddedDriver") was not 
found in the CLASSPATH. Please check your CLASSPATH specification, and the name 
of the driver.
        at 
org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:232)
        at 
org.datanucleus.store.rdbms.ConnectionFactoryImpl.initialiseDataSources(ConnectionFactoryImpl.java:117)
        at 
org.datanucleus.store.rdbms.ConnectionFactoryImpl.<init>(ConnectionFactoryImpl.java:82)
        ... 58 more
   Caused by: 
org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException: 
The specified datastore driver ("org.apache.derby.jdbc.EmbeddedDriver") was not 
found in the CLASSPATH. Please check your CLASSPATH specification, and the name 
of the driver.
        at 
org.datanucleus.store.rdbms.connectionpool.AbstractConnectionPoolFactory.loadDriver(AbstractConnectionPoolFactory.java:58)
        at 
org.datanucleus.store.rdbms.connectionpool.DBCPBuiltinConnectionPoolFactory.createConnectionPool(DBCPBuiltinConnectionPoolFactory.java:49)
        at 
org.datanucleus.store.rdbms.ConnectionFactoryImpl.generateDataSources(ConnectionFactoryImpl.java:213)
        ... 60 more
   
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to