1, master:
[mw_shl_code=bash,true] [hadoop@master hadoop]$ jps
91651 NameNode
91891 SecondaryNameNode
111023 Jps
92078 ResourceManager[/mw_shl_code]
slave:
[mw_shl_code=applescript,true][root@slave hdfs]# jps
28647 DataNode
28792 NodeManager
44376 Jps[/mw_shl_code]
2. 防火墙使用systemcl stop firewall.service 已经关闭了centos 系统
[mw_shl_code=shell,true][hadoop@master wordcount]$ systemctl status firewalld.service
firewalld.service
Loaded: masked (/dev/null)
Active: inactive (dead) since Wed 2016-10-12 17:27:10 CST; 2 weeks 4 days ago
Main PID: 816 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/firewalld.service[/mw_shl_code]
3. 主从节点 hdfs-site.xml:
[mw_shl_code=xml,true]<configuration>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:///data/hadoop/storage/hdfs/name</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:///data/hadoop/storage/hdfs/data</value>
</property>
<property>
<name>dfs.datanode.http-address</name>
<value>10.162.30.162:50075</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
<property>
<name>dfs.secondary.http.address</name>
<value>master:50090</value>
</property>
<property>
<name>dfs.http.address</name>
<value>master:50070</value>
</property>
<property>
<name>dfs.datanode.ipc.address</name>
<value>10.162.30.162:50020</value>
</property>
<property>
<name>dfs.datanode.address</name>
<value>10.162.30.162:50010</value>
</property>
</configuration>[/mw_shl_code]
4. hosts文件:
[mw_shl_code=shell,true]
#127.0.0.1 localhost
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.162.30.129 master
10.162.30.162 slave[/mw_shl_code]
|