[cloud@hdn01 XuClass]$ ls
URLCat.class URLCat.java
[cloud@hdn01 XuClass]$ cd ..
[cloud@hdn01 hadoop-1.2.1]$ bin/hadoop URLCat hdfs://hdn01:9000/user/cloud/in/file1.txt
Warning: $HADOOP_HOME is deprecated.
13/12/09 16:43:52 INFO ipc.Client: Retrying connect to server: hdn01/10.1.1.10:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/12/09 16:43:53 INFO ipc.Client: Retrying connect to server: hdn01/10.1.1.10:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/12/09 16:43:54 INFO ipc.Client: Retrying connect to server: hdn01/10.1.1.10:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
13/12/09 16:43:55 INFO ipc.Client: Retrying connect to server: hdn01/10.1.1.10:9000. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
^C[cloud@hdn01 hadoop-1.2.1]$ jps
2500 Jps
[cloud@hdn01 hadoop-1.2.1]$ bin/start-all.sh
Warning: $HADOOP_HOME is deprecated.
starting namenode, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-namenode-hdn01.out
hdd01: datanode running as process 52962. Stop it first.
hdd02: datanode running as process 49872. Stop it first.
hdn02: secondarynamenode running as process 41173. Stop it first.
starting jobtracker, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-jobtracker-hdn01.out
hdd01: tasktracker running as process 53066. Stop it first.
hdd02: tasktracker running as process 49976. Stop it first.
[cloud@hdn01 hadoop-1.2.1]$ bin/stop-all.sh
Warning: $HADOOP_HOME is deprecated.
stopping jobtracker
hdd01: stopping tasktracker
hdd02: stopping tasktracker
stopping namenode
hdd02: stopping datanode
hdd01: stopping datanode
hdn02: stopping secondarynamenode
[cloud@hdn01 hadoop-1.2.1]$ bin/start-all.sh
Warning: $HADOOP_HOME is deprecated.
starting namenode, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-namenode-hdn01.out
hdd01: starting datanode, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-datanode-hdd01.out
hdd02: starting datanode, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-datanode-hdd02.out
hdn02: starting secondarynamenode, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-secondarynamenode-hdn02.out
starting jobtracker, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-jobtracker-hdn01.out
hdd01: starting tasktracker, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-tasktracker-hdd01.out
hdd02: starting tasktracker, logging to /opt/hadoop-1.2.1/libexec/../logs/hadoop-cloud-tasktracker-hdd02.out
[cloud@hdn01 hadoop-1.2.1]$ bin/hadoop URLCat hdfs://hdn01:9000/user/cloud/in/file1.txt
Warning: $HADOOP_HOME is deprecated.
Hello, world
[cloud@hdn01 hadoop-1.2.1]$