hadoop 常用命令
hdfs dfs -mkdir -p /usr/input/hot
hdfs dfs -ls /
hdfs dfs -ls /usr/input
hdfd dfs -cat /usr/ouput/hot/part* | head -n10
hdfd dfs -cat /usr/ouput/hot/part-r-00000 | head -n1
24 hdfs dfs -ls /
525 hdfs dfs -ls /usr/output
526 hdfs dfs -rmr /usr/output/hot
527 hdfs dfs -ls /usr/output
528 jps
529 hdfs dfs -ls /usr
530 hdfs dfs -ls /usr/output
531 hadoop jar ./hot.jar com.bjsxt.mr.RunJob
532 clear
533 hdfs dfs -cat /usr/input/data
534 hdfs dfs -cat /usr/input/hot/data
535 hadoop jar ./hot.jar com.bjsxt.mr.RunJob
536 hdfs dfs -ls /usr/input/
537 hdfs dfs -ls /usr/input/hot
538 hdfs dfs -chown
539 hdfs dfs -chown /usr/input/hot/* root root
540 hdfs dfs -chown -R root root /usr/input/hot/*
541 hdfs dfs -ls /usr/input/hot
542 hdfs dfs -chown -R root:root /usr/input/hot/*
543 hdfs dfs -ls /usr/input/hot
544 hadoop jar ./hot.jar com.bjsxt.mr.RunJob
545 hdfs dfs -ls /usr/input
546 hdfs dfs -ls /usr
547 hdfs dfs -chown -R root:supergroup /usr/input/hot/*
548 hdfs dfs -ls /usr/input/hot