错误连接:<class 'thrift.transport.TTransport.TTransportException'> 无法连接到 localhost:21000

Nar*_*esh 5 hadoop hive impala

我正在尝试在没有 cloudera manager 的本地机器(32 位 ubuntu)上安装 cloudera impala(他们不支持 32 位 ubuntu,我也尝试过但失败了)。

我尝试按照以下命令从存储库下载黑斑羚。

    $ sudo apt-get install impala-shell
    $ sudo apt-get install impala             # Binaries for daemons
    $ sudo apt-get install impala-server      # Service start/stop script
    $ sudo apt-get install impala-state-store # Service start/stop script 
Run Code Online (Sandbox Code Playgroud)

到这里它工作正常。我的impala/conf/hive-site.xml 看起来像这样

<property>
<name>hive.metastore.local</name>
<value>false</value>
</property>

<property>
<name>hive.metastore.uris</name>
<value>thrift://localhost:9083</value>
</property>

<property>
<name>hive.metastore.client.socket.timeout</name>
<value>3600</value>
<description>MetaStore Client socket timeout in seconds</description>
</property>
Run Code Online (Sandbox Code Playgroud)

我的impala/conf/hdfs-site.xml 看起来像这样。

<property>
    <name>dfs.client.read.shortcircuit</name>
    <value>true</value>
</property>

<property>
    <name>dfs.domain.socket.path</name>
    <value>/var/run/hadoop-hdfs/dn._PORT</value>
</property>

<property>
    <name>dfs.client.file-block-storage-locations.timeout</name>
    <value>3000</value>
</property>
Run Code Online (Sandbox Code Playgroud)

现在,我试图在impala-shell 上连接到本地主机。但是,它给了我这个错误

Error connecting: <class 'thrift.transport.TTransport.TTransportException'>, Could not connect to localhost:21000
Run Code Online (Sandbox Code Playgroud)

仅供参考,我正在将 mysql 用于我的 hive-hadoop 集群的 Metastore。

Tar*_*riq -1

发生这种情况是因为您在配置设置中使用 localhost。使用完全限定域名而不是 localhost 并重新启动 shell。