Niftyクラウド環境の構築(11)

【テストデータのロード】

service hadoop-0.20-namenode status
service hadoop-0.20-jobtracker status

service hadoop-0.20-datanode status
service hadoop-0.20-tasktracker status



su -hdfs
hadoop fs -ls /
drwxr-xr-x – hdfs supergroup 0 2012-01-27 19:40 /KR
drwxr-xr-x – hdfs supergroup 0 2012-01-27 20:05 /hadoop
drwx—— – mapred supergroup 0 2012-01-27 20:05 /mapred
drwxr-xr-x – hdfs supergroup 0 2012-01-27 20:05 /user


ls -l /loaddata/KR
-rw-r–r– 1 root root 1354189115 4月 26 2011 KR200910s.LOG
-rw-r–r– 1 root root 1289679517 4月 26 2011 KR200911s.LOG
-rw-r–r– 1 root root 1294432059 4月 26 2011 KR200912s.LOG
-rw-r–r– 1 root root 1327065937 6月 22 2011 KR201001s.LOG
-rw-r–r– 1 root root 1299011907 6月 22 2011 KR201002s.LOG
-rw-r–r– 1 root root 1479167597 6月 22 2011 KR201003s.LOG
-rw-r–r– 1 root root 1397666087 6月 22 2011 KR201004s.LOG
-rw-r–r– 1 root root 1282868713 6月 23 2011 KR201005s.LOG
-rw-r–r– 1 root root 1434970373 6月 22 2011 KR201006s.LOG
-rw-r–r– 1 root root 1476895925 6月 23 2011 KR201007s.LOG
-rw-r–r– 1 root root 1451074255 6月 23 2011 KR201008s.LOG
-rw-r–r– 1 root root 1462391901 6月 23 2011 KR201009s.LOG
-rw-r–r– 1 root root 153756284 6月 23 2011 SH200910s.LOG
-rw-r–r– 1 root root 627054162 6月 23 2011 SH200911s.LOG
-rw-r–r– 1 root root 664644632 6月 23 2011 SH200912s.LOG
-rw-r–r– 1 root root 642252844 6月 23 2011 SH201001s.LOG
-rw-r–r– 1 root root 622806236 6月 23 2011 SH201002s.LOG
-rw-r–r– 1 root root 709788916 6月 23 2011 SH201003s.LOG
-rw-r–r– 1 root root 679195442 6月 23 2011 SH201004s.LOG
-rw-r–r– 1 root root 598537376 6月 23 2011 SH201005s.LOG
-rw-r–r– 1 root root 660543790 6月 23 2011 SH201006s.LOG
-rw-r–r– 1 root root 670916714 6月 23 2011 SH201007s.LOG
-rw-r–r– 1 root root 643944310 6月 23 2011 SH201008s.LOG
-rw-r–r– 1 root root 661163644 6月 23 2011 SH201009s.LOG


hadoop fs -mkdir /user/hdfs/KR
hadoop fs -copyFromLocal /loaddata/KR/KR200910s.LOG /user/hdfs/KR/KR200910s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR200911s.LOG /user/hdfs/KR/KR200911s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR200912s.LOG /user/hdfs/KR/KR200912s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201001s.LOG /user/hdfs/KR/KR201001s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201002s.LOG /user/hdfs/KR/KR201002s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201003s.LOG /user/hdfs/KR/KR201003s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201004s.LOG /user/hdfs/KR/KR201004s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201005s.LOG /user/hdfs/KR/KR201005s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201006s.LOG /user/hdfs/KR/KR201006s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201007s.LOG /user/hdfs/KR/KR201007s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201008s.LOG /user/hdfs/KR/KR201008s.LOG
hadoop fs -copyFromLocal /loaddata/KR/KR201009s.LOG /user/hdfs/KR/KR201009s.LOG


 

- Sponsored Link -