我一直在尝试在本机Hadoop安装上安装并启动Impala。以下是使用impalad的错误日志。 Impala服务器位于辅助名称节点(nn02.tcs.com)

[root@nn02 impala]# impalad
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
E0903 23:43:52.400326 21972 impala-server.cc:208] Could not read the HDFS root directory at hdfs://nn01.tcs.com:8020. Error was:
    Failed on local exception: com.google.protobuf.InvalidProtocolBufferException:
        Message missing required fields: callId, status;
        Host Details : local host is: "nn02.tcs.com/192.168.2.101";
        destination host is: "nn01.tcs.com":8020;
E0903 23:43:52.400411 21972 impala-server.cc:210] Aborting Impala Server startup due to improper configuration

我可以通过以下方式访问相同的HDFS:
[root@nn02 impala]# hadoop fs -ls hdfs://nn01.tcs.com
Found 1 items
-rw-r--r--   3 root hdfs       9737 2014-06-16 09:27 hdfs://nn01.tcs.com/user/root/x

我可以通过名称节点中的浏览器访问名称节点(nn01.tcs.com)中的站点:

http://nn01.tcs.com:8020-我收到以下消息



请帮助解决此错误

最佳答案

更改
/etc/hadoop/conf/core-site.xml

<property>
  <name>fs.defaultFS</name>
  <value>hdfs://nn01.tcs.com:8020</value>
</property>


<property>
  <name>fs.defaultFS</name>
  <value>hdfs://nn01.tcs.com:8020/</value>
</property>
                                 ^end slash is needed

关于hadoop - 启动Impala的问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25657100/

10-16 02:50