我試圖從CLI進入蜂巢外殼,但它的失敗: - 我嚴格遵循此鏈接安裝: - http://www.tutorialspoint.com/hive/hive_installation.htm無法通過拋出下面的錯誤進入蜂巢殼牌
Exception in thread "main" java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
Caused by: javax.jdo.JDOFatalDataStoreException: Unable to open a test connection to the given database. JDBC url = jdbc:derby://localhost:1527/metastore_db;create=true , username = APP. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------ java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/metastore_db;create=true
java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:derby://localhost:1527/metastore_db;create=true , username = APP. Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------ java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/metastore_db;create=trueCaused by: java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:derby://localhost:1527/metastore_db;create=true , username = APP. Terminating connection pool (set lazyInit to true if you expect to start your database after your app).
Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-2.0.0.jar!/hive-log4j2.properties Exception in thread "main" java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
不知道這是否是同樣的問題,但檢查這個環節。我最近在ubuntu上安裝了配置單元,並面臨以下問題。 http://stackoverflow.com/questions/35655306/hive-installation-issues-hive-metastore-database-is-not-initialized – AMITAVA
配置完'.bashrc'之後,你重新啓動了'terminal'嗎?如果是,那麼請共享'echo $ CLASSPATH'和'ls -l $ DERBY_HOME/lib/derbytools.jar'命令的輸出。 – Mahendra
是的,我重新啓動.bashrc。 echo $ CLASSPATH的輸出是:/ home/ajith/hadoop/lib /*:.:/ usr/local/hive/lib /*:.:/ usr/local/derby/lib/derby.jar:/ usr/local/derby/lib/derbytools.jar和ls -l $ DERBY_HOME/lib/derbytools.jar ---> -rwxrwxrwx 1 root root 229665 2015年9月20日/usr/local/derby/lib/derbytools.jar –