gpt4 book ai didi

hadoop - 启动 Impala 的问题

转载 作者:可可西里 更新时间:2023-11-01 16:22:00 26 4
gpt4 key购买 nike

我一直在尝试在 native 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 - 我收到以下消息

It looks like you are making an HTTP request to a Hadoop IPC port. This is not the correct port for the web interface on this daemon.

请帮助解决这个错误

最佳答案

改变/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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com