執行建表命令報錯:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the client level.)
這個是由于我的mysql不再本地(默認使用本地資料庫),這里需要配置遠端元資料服務器,然后在hive服務端啟動元資料存盤服務,metastore用于和mysql之間的表結構創建或更新時通訊
首先在組態檔配置metastore的配置,如下
<property>
<name>hive.metastore.uris</name>
<value>thrift://192.168.88.101:9083</value>
<description>jdbc/odbc connection hive,if mysql must set </description>
</property>
配置好后,啟動通訊服務:
[bdata@bdata4 bin]$ ./hive --service metastore -hiveconf hbase.zookeeper.quorum=bdata1,bdata2,bdata3 -hiveconf hbase.zookeeper.property.clientPort=2181 &
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/123609.html
標籤:疑難問題
下一篇:安裝sql時
