hadoop伪分布式配置


core-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
 <property> 
      <name>fs.default.name</name> 
      <value>hdfs://localhost:9000</value>  
 </property> 
 <property> 
      <name>dfs.replication</name>  
      <value>1</value>  
 </property> 
 <property> 
      <name>hadoop.tmp.dir</name> 
      <value>//tmp</value>  
 </property> 
</configuration>


hadoop-env.sh

export JAVA_HOME=/opt/jdk1.6.0_43


hdfs-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
        <property>
        <name>dfs.name.dir</name>
        <value>/tmp/name/</value>
        </property>
        <property>
        <name>dfs.data.dir</name>
        <value>/tmp/data/</value>
        </property>
        <property>
        <name>dfs.replication</name>
        <value>1</value>
        </property>
        <property>
        <name>dfs.permissions</name>
        <value>false</value>
        <description>
                If "true", enable permission checking in HDFS.
                If "false", permission checking is turned off,
                but all other behavior is unchanged.
                Switching from one parameter value to the other does not change the mode,
                owner or group of files or directories.
        </description>
        </property>
</configuration>


mapred-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
 <property>  
  <name>mapred.job.tracker</name> 
  <value>localhost:9001</value>  
 </property> 
</configuration>

猜你喜欢

转载自fengshayage.iteye.com/blog/1853317