载入中。。。 'S bLog
 
载入中。。。
 
载入中。。。
载入中。。。
载入中。。。
载入中。。。
载入中。。。
 
填写您的邮件地址,订阅我们的精彩内容:


 
hadoop学习笔记2 hdfs命令操作
[ 2012/1/30 20:47:00 | By: 梦翔儿 ]
 

查看

hadoop fs

建目录

hadoop fs -mkdir /user/cloud/test

列当前目录

hadoop fs -ls

列根目录

hadoop fs -ls /

循环列目录

hadoop fs -lsr /

上传到当前目录

sudo nano example.txt

hadoop fs -put example.txt .

下载

hadoop fs -get example.txt .

显示文件内容

hadoop fs -cat example.txt

快速检查内容

hadoop fs -cat example.txt | head

查看最后1千字符

hadoop fs -tail example.txt

删除文件或空目录

hadoop fs -rm example.txt

查看指定命令帮助

hadoop fs -help rmr


 


 

 

 
 
  • 标签:hadoop 
  • 发表评论:
    载入中。。。

     
     
     

    梦翔儿网站 梦飞翔的地方 http://www.dreamflier.net
    中华人民共和国信息产业部TCP/IP系统 备案序号:辽ICP备09000550号

    Powered by Oblog.