hadoop dfs 操作

  791  cd /home/hadoop/hadoop/hadoop-1.0.2/
  792  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount input out11
  793  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount input/* out1111/
  794  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount input/* out123/
  795  bin/hadoop dfs ls 
  796  bin/hadoop dfs -ls 
  797  bin/hadoop dfs -ls ./input
  798  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount in/ out1111/
  799  bin/hadoop dfs -ls in/
  800  bin/hadoop dfs -rmdir in/input
  801  bin/hadoop dfs -rd in/input
  802  bin/hadoop dfs rm -r in/input
  803  bin/hadoop dfs rm -r in
  804  bin/hadoop dfs rm -r /in
  805  bin/hadoop dfs rm -rd /in
  806  bin/hadoop dfs -rm in/input/*
  807  bin/hadoop dfs -rmdir in/input
  808  bin/hadoop dfs -rmdir in/input/
  809  bin/hadoop dfs -rmr in/input/
  810  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount in/ out1111/
  811  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount in/ out111/
  812  bin/hadoop jar hadoop-examples-1.0.2.jar wordcount input/ out1311/
  813  ls -l
  814  bin/hadoop dfs -ls
  815  bin/hadoop dfs -ls input/
  816  cd ..
  817  ls
  818  cd ..
  819  ls
  820  hadoop/hadoop-1.0.2/bin/hadoop dfs -put hadoopTxt/* input/
  821  hadoop/hadoop-1.0.2/bin/hadoop dfs -ls input/
  822  1;2c1;2c
  823  ls

你可能感兴趣的:(hadoop,操作,DFS)