1
我已經使用CDH4.1安裝配置單元 我想使用MySql作爲配置單元Metastore,我編輯了配置mysql的hive-site.xml,並啓動了配置單元服務器和Metastore 試圖在配置單元中創建表它顯示以下錯誤 FAILED:元數據錯誤:java.lang.RuntimeException:無法實例化org.apache.hadoop.hive.metastore.HiveMetaStoreClient FAILED:執行錯誤,返回代碼1 org.apache.hadoop.hive.ql.exec.DDL任務 任何人都可以請幫忙嗎? 我曾嘗試使用以下後FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient在配置單元中創建表時出錯
我的蜂房site.xml的是如下解決
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:hive2://localhost:21050/;auth=noSasl</value>
<description>the URL of the MySQL database</description>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hive</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>Newuser123</value>
</property>
<property>
<name>datanucleus.autoCreateSchema</name>
<value>false</value>
</property>
<property>
<name>datanucleus.fixedDatastore</name>
<value>true</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://localhost:9083</value>
<description>IP address (or fully-qualified domain name) and port of the metastore host</description>
</property>