hadoop伪分布模式配置

hadoop伪分布模式配置如下:

进入/home/tom/hadoop/conf,配置hadoop配置文件


配置hadoop-env.sh文件

export JAVA_HOME=/home/tom/jdk1.7.0_05

export PATH=$PATH:/home/tom/hadoop/bin

export HADOOP_CLASSPATH=/home/tom/hadoop/lib/


配置core-site.xml 

<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/liping/software/tmp/hadoop/hadoop-${user.name}</value>
</property>
</configuration>


配置hdfs-site.xml

<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>


配置mapred-site.xml

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



你可能感兴趣的:(java,hadoop,Path)