hadoop集群环境安装中的hosts 配置问题
2011-04-02 17:49
751 查看
今天在安装hadoop集群的时候,所有节点配置完毕,发现执行下面的命令的时候
hadoop@name-node:~/hadoop$ bin/hadoop fs -ls
name节点会报如下错误:
11/04/02 17:16:12 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
11/04/02 17:16:13 WARN conf.Configuration: mapred.task.id is deprecated. Instead, use mapreduce.task.attempt.id
11/04/02 17:16:14 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 0 time(s).
11/04/02 17:16:15 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 1 time(s).
11/04/02 17:16:16 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 2 time(s).
11/04/02 17:16:17 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 3 time(s).
11/04/02 17:16:18 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 4 time(s).
11/04/02 17:16:19 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 5 time(s).
11/04/02 17:16:20 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 6 time(s).
11/04/02 17:16:21 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 7 time(s).
11/04/02 17:16:22 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 8 time(s).
11/04/02 17:16:23 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 9 time(s).
Bad connection to FS. command aborted.
折腾了大半天,找到如下解决方案:
hadoop@name-node:~$ sudo vim /etc/hosts
去掉127.0.0.1 name-node 这行,保存。
重启hadoop集群,问题解决。
hadoop@name-node:~/hadoop$ bin/hadoop fs -ls
name节点会报如下错误:
11/04/02 17:16:12 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
11/04/02 17:16:13 WARN conf.Configuration: mapred.task.id is deprecated. Instead, use mapreduce.task.attempt.id
11/04/02 17:16:14 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 0 time(s).
11/04/02 17:16:15 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 1 time(s).
11/04/02 17:16:16 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 2 time(s).
11/04/02 17:16:17 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 3 time(s).
11/04/02 17:16:18 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 4 time(s).
11/04/02 17:16:19 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 5 time(s).
11/04/02 17:16:20 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 6 time(s).
11/04/02 17:16:21 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 7 time(s).
11/04/02 17:16:22 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 8 time(s).
11/04/02 17:16:23 INFO ipc.Client: Retrying connect to server: /10.42.43.55:9000. Already tried 9 time(s).
Bad connection to FS. command aborted.
折腾了大半天,找到如下解决方案:
hadoop@name-node:~$ sudo vim /etc/hosts
去掉127.0.0.1 name-node 这行,保存。
重启hadoop集群,问题解决。
相关文章推荐
- Centos 7.2 安装 Ambari 2.2.2 + HDP 2.4.2 搭建Hadoop集群的环境配置
- Hadoop2.7.2 Centos 完全分布式集群环境搭建 (2) - Hadoop安装与配置(完全分布式)
- 生产环境下Hadoop大集群安装与配置+DNS+NFS
- 生产环境下Hadoop大集群安装与配置+DNS+NFS
- hadoop在centos6.7下安装下环境配置问题
- Hadoop 2.7.1 集群模式安装【三】环境配置实战
- 002_如何安装JDK以及Hadoop集群环境搭建_2台机都要配置一致
- hadoop集群环境搭建之安装配置hadoop集群
- hadoop学习笔记之-生产环境Hadoop大集群配置安装
- Hadoop、Zookeeper、Hbase集群安装配置过程及常见问题(一)准备工作
- Hadoop 2.4.x集群安装配置问题总结
- Hadoop集群在Ubuntu上的安装与配置 ——(01)环境前期准备
- Hadoop 2.7.1 集群模式安装【二】环境配置
- Hadoop 2.6 集群搭建从零开始之4 Hadoop的安装与配置(完全分布式环境)
- hadoop2集群安装和测试之环境配置
- 从VMware虚拟机安装到hadoop集群环境配置详细说明
- Apache Hadoop 分布式集群环境安装配置详细步骤
- 在Hadoop集群环境中为MySQL安装配置Sqoop的教程
- 虚拟机CentOS环境下Hadoop伪分布模式的安装与配置问题总结
- 从VMware虚拟机安装到hadoop集群环境配置详细说明(第一期)