Under each boot Mac formatted file system should start hadoop

Configuration hdfs-site.xml

<configuration>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
    <property>
        <name>dfs.namenode.name.dir</name>
        <value>/Users/shen/tmp/dfs/namenode</value>
    </property>
    <property>
        <name>dfs.datanode.data.dir</name>
        <value>/Users/shen/tmp/dfs/datanode</value>
    </property>
    <property>
        <name>dfs.http.address</name>
        <value>localhost:9870</value>
    </property>
</configuration>

core-site.xml

<configuration>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://localhost:9000</value>
   </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/Users/shen/tmp</value>
    </property>
</configuration>

The second three settings hdfs-site.xml, as well as core-site.xml second set, to set about the directory file system information, like me, this is / Users / shen / tmp

It seems that the default directory on the system, it seems that because of permission issues need to be reformatted.

Guess you like

Origin blog.csdn.net/shen19960603/article/details/82959984