显示根目录 / 下的文件和子目录,绝对路径
hadoop fs -ls /
新建文件夹,绝对路径
hadoop fs -mkdir /hello
上传文件
hadoop fs -put hello.txt /hello/
下载文件
hadoop fs -get /hello/hello.txt
输出文件内容
hadoop fs -cat /hello/hello.txt
$HADOOP_HOME/etc/hadoop 中
workers 记录所有的数据节点的主机名或IP地址
core-site.xml Hadoop 核心配置
hdfs-site.xml HDFS配置项
mapred-site.xml MapReduce 配置项
yarn-site.xml YARN 配置项
