{{{ #!html
實作十一:
}}} [[PageOutline]] ◢ <[wiki:YM_Course_2009/Lab10 實作十]> | <[wiki:YM_Course_2009 回課程大綱]> ▲ | <[wiki:YM_Course_2009/Lab12 實作十二]> ◣ = hdfs 指令操作練習篇 = * 查詢是否有資料 {{{ $ hadoop fs -ls }}} * 放資料上hdfs {{{ $ mkdir input $ cp /tmp/bio.txt input $ hadoop fs -put input input 在作一次試試看 $ mkdir hello $ cp /tmp/hello.txt hello/ $ hadoop fs -put hello hello1 $ hadoop fs -put hello hello2 }}} * 再次查看是否成功放入資料 {{{ $ hadoop fs -ls }}} * 刪除資料 {{{ $ hadoop fs -rmr hello2 }}} * 下載資料 {{{ $ hadoop fs -get hello1 whatisthat $ ls }}} * 印出hdfs上的資料內容 {{{ $ hadoop fs -cat hello1/hello.txt }}} * [cloud:wiki:0428Hadoop_Lab2 更多練習]