hadoop伪分布模式启动
1.设置conf下的core-site.xml、hdfs-site.xml、mapred-site.xml文件
core-site.xml:
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost</value> </property> <property> <name>hadoop.tmp.dir</name> <value>tmp/hadoop-${user.name}</value> </property></configuration><configuration> <property> <name>dfs.replication</name> <value>1</value> </property></configuration>
<configuration> <property> <name>mapred.job.tracker</name> <value>localhost:8021</value> </property></configuration>