2017-03-03 566 views
0

我是這個領域的新手。我正在檢查CDH 5.8快速啓動VM以嘗試一些基本的配置單元/ impala示例。Hive:如果沒有運行HiveServer2,應用程序將無法運行

但是我遇到了一個問題,當我打開HUE時,它給出了以下錯誤。我搜索解決方案,但沒有得到任何可以解決我的問題。

Configuration files located in /etc/hue/conf.empty 

Potential misconfiguration detected. Fix and restart Hue. 

Hive The application won't work without a running HiveServer2. 

我檢查了它,它運行了&。試圖重新啓動服務& CDH,沒有幫助。

Hive Server2 is running         [ OK ] 

當導航到Hive嘗試了一些命令,它給了我下面的錯誤。

Could not connect to quickstart.cloudera:10000 (code THRIFTTRANSPORT): TTransportException('Could not connect to quickstart.cloudera:10000',

FOR因帕拉我越來越

AnalysisException: This Impala daemon is not ready to accept user requests. Status: Waiting for catalog update from the StateStore

試圖啓動蜂巢--service metastore但遇到錯誤

[[email protected] conf.empty]$ hive --service metastore 
2017-03-03 05:37:14,502 WARN [main] mapreduce.TableMapReduceUtil: The hbase-prefix-tree module jar containing PrefixTreeCodec is not present. Continuing without it. 
Starting Hive Metastore Server 
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083. 

不知道什麼是錯的,或者如果我需要更改一些配置。你能指導我解決問題嗎?

回答

3

您HiveServer2需要Metastore啓動並運行。似乎您的Metastore Server無法啓動,因爲端口9083已被某些服務使用。如果某樣東西正在使用此端口,你需要更改端口您metastore在蜂巢結構或停止其已使用此端口的應用程序

netstat -tulpn | grep 9083 

:檢查它。

+0

我們應該尋找什麼輸出? – thebluephantom

+0

@thebluephantom你應該看到一個記錄,以防使用這個端口的情況。您將可以看到應用程序的PID。然後您可以使用ps命令來了解有關該應用程序的更多詳細信息。你應該殺掉它並重新配置到另一個端口,或者你可以重新配置Hive Metastore來使用另一個端口 – Alex

+0

我認爲這可能是很多問題。我檢查並發現在HDFS中導致安全模式的數據塊丟失。由於Win 7上的藍屏影響Linux VM,我清除了這個問題。那很好。 @Alex – thebluephantom