hadoop version selection and pseudo-distributed installation problems

First, to build their own problems encountered is the port number 50070 can not access, troubleshoot problems on a bit to know the details of the configuration parameters. First, start with the host, the investigation learned: there is no host name node, understand know core-site.xml configuration problem:

Misconfigured delays:

 

 In addition you need to configure: secondnamenode

We should be configured in hdfs-site.xml:

 

 value: 3 means that your machine has the cluster number, represented here have three, you can also set up a stand-alone.

This means that you Hadoop2 auxiliary machine (seconnamenode) which should be placed above, the configuration parameters can be copied directly, on the map for easy reference,

 <!-- 指定HDFS副本的数量 -->
<property>
<name>dfs.replication</name>
<value>3</value>
</property>
<property>
<name>dfs.namenode.secondary.http-address</name>
<value>hadoop2:50090</value>
</property>
<!--获取文件夹写入权限-->
<property>
<name>dfs.permissions.enabled</name>
<value>false</value>
</property>
 
After configuration, save and exit, and then
 What format, the command is: hdfs namenode -format

 

 

Then use the following command:
stop-dfs.sh

 

 

start-dfs.sh
Turn off the firewall
 Then access IP: 50070

 

 

Then access IP: 8088

 

 Lacks basic problem!

Guess you like

Origin www.cnblogs.com/studygithub5208868/p/11444318.html