2013-05-06 163 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

土地上最多