2013-05-06 160 views
2

我已經安裝了經由Cloudera的管理器的Cloudera帕拉V0.4 4.1.3錯誤連接:<類 'thrift.transport.TTransport.TTransportException'>

我的羣集包括只從機

slave1 --> Impala Daemon, State Store daemon 
slave2 --> Impala Daemon 

所以,我能夠在這些機 -

>impala-shell 

運行斑羚殼的問題是,當我運行命令(在SLAVE1/SLAVE2)

[Not connected] > connect impalad-host:21000 

我得到以下錯誤:

Error connecting: class 'thrift.transport.TTransport.TTransportException' 
Could not connect to impalad-shell:21000 

這裏impalad主機上默認端口號21000運行的主機名。

如何配置主機名和端口號?

+0

我也面臨同樣的問題! – 2013-05-24 08:33:34

+0

好吧,我解決了這個問題。 Hive使用Derby作爲metastore,Impala不能與derby一起使用。它只能用於MySql或Postgresql。你可以請檢查一下hive-site.xml,看看你能找到某處提到的mysql嗎?這個xml會出現在/usr/lib/hive/conf.....這些行的某個路徑的某處。 – 2013-05-24 12:35:56

回答

0

雖然這是一個爲期三年的老問題,我仍然要添加我的兩分錢的人誰該頁面尋找一個解決方案 -

在這裏尋找答案Modifying Impala Startup Options

Configuring Impala Startup Options through the Command Line

When you run Impala in a non-Cloudera Manager environment, the Impala server, statestore, and catalog services start up using values provided in a defaults file, /etc/default/impala.

This file includes information about many resources used by Impala. Most of the defaults included in this file should be effective in most cases. For example, typically you would not change the definition of the CLASSPATH variable, but you would always set the address used by the statestore server. Some of the content you might modify include:

IMPALA_STATE_STORE_HOST=127.0.0.1

IMPALA_STATE_STORE_PORT=24000

IMPALA_BACKEND_PORT=22000

IMPALA_LOG_DIR=/var/log/impala

土地上最多