HDFS 2.2 配置文件

core-site.xml

 <property>
    <name>fs.defaultFS</name>
    <value>hdfs://localhost:9000</value>
</property>

<property>                                        
    <name>io.file.buffer.size</name>
    <value>131072</value>
</property>

<property>
    <name>hadoop.tmp.dir</name>                                    
    <value>file:/home/cloudwave/tmp</value>
</property>

hdfs-site.xml

<property>
    <name>dfs.namenode.secondary.http-address</name>
    <value>localhost:9001</value>
</property>

<property>
    <name>dfs.namenode.name.dir</name>
    <value>file:/home/cloudwave/dfs/name</value>
</property>

<property>
    <name>dfs.datanode.data.dir</name>
    <value>file:/home/cloudwave/dfs/data</value>
</property>

<property>
    <name>dfs.replication</name>
    <value>3</value>
</property>

<property>
    <name>dfs.webhdfs.enabled</name>
    <value>true</value>
</property>

你可能感兴趣的:(hdfs)