回顾Hdfs的基本操作启动hdfs进入hadoop目录“./sbin/start-dfs.sh”关闭hdfs“./sbin/stop-dfs.sh”“localhost50070”是图形界面“./bin/hdfs dfs -ls”输出文件“./bin/hdfs dfs -rm”删除“./bin/hdfs dfs -put [本地文件path] [hdfs的path]”上传文件“./bin/hdfs dfs -cat [hdfs的path]”阅读hdfs上的文件“./bin/hdfs dfs -get [hdfs的path] [本地文件path]”下载“./bin/hdfs dfs -rm [hdfs的path]”删除编写独立应用程序统计行数默认读取hdfs://端口号/[path]读取本地文件使用“file://”