???????mapred-site.xml??

 

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
</configuration>

???????hdfs-site.xml??

 

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>

??master???????SNN????slaves??????????λ?t??????

 

[hadoop@promote conf]$ cat masters
localhost
[hadoop@promote conf]$ cat slaves
localhost

???????崠?????Hadoop

 

[hadoop@promote bin]$ cd ../conf/
[hadoop@promote conf]$ cd ../bin
[hadoop@promote bin]$ sh start-all.sh
starting namenode?? logging to /home/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-hadoop-namenode-promote.cache-dns.local.out
localhost: starting datanode?? logging to /home/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-hadoop-datanode-promote.cache-dns.local.out
localhost: starting secondarynamenode?? logging to /home/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-hadoop-secondarynamenode-promote.cache-dns.local.out
starting jobtracker?? logging to /home/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-hadoop-jobtracker-promote.cache-dns.local.out
localhost: starting tasktracker?? logging to /home/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-hadoop-tasktracker-promote.cache-dns.local.out

???????????????Hadoop?????????????