hadoopha的namenode启动以后fs.default.name配置的9003端口没有监听,求助大神

热汤玛士 2019-06-12 11:16:24
hadoopha的namenode启动以后fs.default.name配置的9003端口没有监听,求助大神
日志:
[hadoop@nn1 hadoop]$ hadoop dfs -ls /
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

19/06/12 16:13:52 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: Call From nn1/192.168.222.130 to nn1:9003 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
[hadoop@nn1 hadoop]$
...全文
359 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
samme2019 2019-09-25
  • 打赏
  • 举报
回复
你可以通过ping nn1试试,如果通ping,就表示已经配置好了
samme2019 2019-09-25
  • 打赏
  • 举报
回复
hdfs://nn1:9003 中的nn1,有没有在/etc/hosts中配置IP地址
热汤玛士 2019-06-12
  • 打赏
  • 举报
回复
难受0-0-0-0-0
热汤玛士 2019-06-12
  • 打赏
  • 举报
回复
[hadoop@nn1 hadoop]$ cat core-site.xml <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. See accompanying LICENSE file. --> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>fs.default.name</name> <value>hdfs://nn1:9003</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/usr/hadoop/data/tmp</value> </property> <property> <name>ha.zookeeper.quorum</name> <value>nn1:2181,nn2:2181,dn1:2181,dn2:2181,dn3:2181</value> </property> </configuration> [hadoop@nn1 hadoop]$ jps 4916 DFSZKFailoverController 3481 QuorumPeerMain 7114 Jps 5818 NameNode [hadoop@nn1 hadoop]$ netstat -an |grep -i 90032 [hadoop@nn1 hadoop]$ netstat -an |grep -i 9003 [hadoop@nn1 hadoop]$ netstat -an |grep -i 50070 tcp 0 0 192.168.222.130:50070 0.0.0.0:* LISTEN [hadoop@nn1 hadoop]$ netstat -an |grep -i 8020 tcp 0 0 192.168.222.130:8020 0.0.0.0:* LISTEN tcp 0 0 192.168.222.130:41868 192.168.222.130:8020 ESTABLISHED tcp 0 0 192.168.222.130:8020 192.168.222.130:41868 ESTABLISHED tcp 0 0 192.168.222.130:8020 192.168.222.134:51032 ESTABLISHED tcp 0 0 192.168.222.130:8020 192.168.222.135:49158 ESTABLISHED [hadoop@nn1 hadoop]$ hadoop dfs -ls / DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. 19/06/12 16:13:52 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable ls: Call From nn1/192.168.222.130 to nn1:9003 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused [hadoop@nn1 hadoop]$
热汤玛士 2019-06-12
  • 打赏
  • 举报
回复
详细配置和端口

20,811

社区成员

发帖
与我相关
我的任务
社区描述
Hadoop生态大数据交流社区,致力于有Hadoop,hive,Spark,Hbase,Flink,ClickHouse,Kafka,数据仓库,大数据集群运维技术分享和交流等。致力于收集优质的博客
社区管理员
  • 分布式计算/Hadoop社区
  • 涤生大数据
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧