Hadoop 测试例子
1、smart用户下建立目录 /home/smart/hadoop_test/input 2、建立两个文本文件 cd /home/smart/hadoop_test/input echo "hello world" >test1.txt echo "hello hadoop" >test2.txt 3、将文件内容放入hadoop cd /usr/local/hadoop-0.20.2/ bin/hadoop dfs -put /home/smart/hadoop_test/input in 4、查看放入hadoop后的内容结果 bin/hadoop dfs -ls ./in/* 结果为: -rw-r--r-- 2 smart supergroup 12 2013-02-23 20:06 /user/sm