首页 > 其他 > 详细

Hadoop basic

时间:2015-04-22 09:22:28      阅读:245      评论:0      收藏:0      [点我收藏+]

1. load file into hdfs

hadoop fs -put src  dest

example: load a fold "input" into hdfs "input" folder

hadoop fs -put /mnt/hgfs/input  input

2. list file in hdfs

hadoop fs -ls
hadoop fs -ls input

3. open file in hdfs

example: open all file in output folder

 hadoop fs -cat output/*

4. run a jar file in hadoop(class name must include package name)

jar hello.jar package_name.Class_name  args...

 

Hadoop basic

原文:http://www.cnblogs.com/phoenix13suns/p/4446342.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!