Prerequisites: This article hadoop default installation was successful. If no reference can be mounted:
http://dblab.xmu.edu.cn/blog/install-hadoop/
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html
1. Log Ali cloud console, modify the security group, the modification is completed reboot Ali cloud
2. modify the configuration file
Added or modified in the following two documents as
core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://0.0.0.0:9000</value>
</property>
</configuration>
hdfs-site.xml
<configuration>
<property>
<name>dfs.namenode.http-address</name>
<value>0.0.0.0:50070</value>
</property>
</configuration>
50070 is the default port, if you want to use other ports, can be adjusted.
3. Format and reboot hdfs
bin/hdfs namenode -format
sbin/start-dfs.sh
4. Check if the port is occupied 50070
netstat -tpnl
If there 0.0.0.0:50070 will be able to access a server on the cloud hadoop on this computer
Local Web Access: http: // Ali cloud public network ip: 50070