环境,三台虚拟机,centos6.5,jdk 1.7.0_71,hadoop版本hadoop2.7.1
三台机分别配置/etc/sysconfig/network 为
NETWORKING=yes
HOSTNAME=master
NETWORKING=yes
HOSTNAME=master2
NETWORKING=yes
HOSTNAME=master3
配置/etc/hosts
192.168.244.102 master
192.168.244.104 master3
192.168.244.105 master2
127.0.0.1 localhost.localdomain master
192.168.244.102 master
192.168.244.104 master3
192.168.244.105 master2
127.0.0.1 localhost.localdomain master2
192.168.244.102 master
192.168.244.104 master3
192.168.244.105 master2
127.0.0.1 localhost.localdomain master3
配置core-site.xml
配置hdfs-site.xml
配置mapred-site.xml
配置yarn-site.xml
hadoop-env.sh、yarn-env.sh,mapred-env.sh 的JAVA_HOME 配置为
export JAVA_HOME=/usr/java/jdk1.7.0_71
slaves配置为
master2
master3
使用命令sbin/start-dfs.sh;sbin/start-yarn.sh 启动
主节点jps查看不到任何信息
但是搜索进程 (ps -ef|grep java)可以看到
hadoop 1214 1 0 19:42 ? 00:00:12 /usr/java/jdk1.7.0_71/bin/java -Dproc_namenode -Xmx1000m -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/home/hadoop/hadoop/hadoop-2.7.1/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/home/hadoop/hadoop/hadoop-2.7.1 -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,console -Djava.library.path=/home/hadoop/hadoop/hadoop-2.7.1/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/home/hadoop/hadoop/hadoop-2.7.1/logs -Dhadoop.log.file=hadoop-hadoop-namenode-master.log -Dhadoop.home.dir=/home/hadoop/hadoop/hadoop-2.7.1 -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,RFA -Djava.library.path=/home/hadoop/hadoop/hadoop-2.7.1/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.server.namenode.NameNode
hadoop 1394 1 0 19:42 ? 00:00:08 /usr/java/jdk1.7.0_71/bin/java -Dproc_secondarynamenode -Xmx1000m -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/home/hadoop/hadoop/hadoop-2.7.1/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/home/hadoop/hadoop/hadoop-2.7.1 -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,console -Djava.library.path=/home/hadoop/hadoop/hadoop-2.7.1/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/home/hadoop/hadoop/hadoop-2.7.1/logs -Dhadoop.log.file=hadoop-hadoop-secondarynamenode-master.log -Dhadoop.home.dir=/home/hadoop/hadoop/hadoop-2.7.1 -Dhadoop.id.str=hadoop -Dhadoop.root.logger=INFO,RFA -Djava.library.path=/home/hadoop/hadoop/hadoop-2.7.1/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode
hadoop 1956 1033 0 20:12 pts/0 00:00:00 grep java
在master3上面jps命令 打印
1067 DataNode
1297 Jps
在master2上面jps命令 打印
1153 NodeManager
1065 DataNode
1295 Jps
查看主节点日志 其他文件均正常,除了yarn-hadoop-resourcemanager-master.log 有错误信息
vi yarn-hadoop-resourcemanager-master.log
求各位指导!!!