标签:
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...
标签:
原文地址:http://www.cnblogs.com/phoenix13suns/p/4446342.html