码迷,mamicode.com
首页 > 其他好文 > 详细

Hadoop basic

时间:2015-04-22 09:22:38      阅读:119      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!