通过shell操作hdfs数据
1.查看目录: bin/hdfs dfs -ls /
2.创建目录: bin/hdfs dfs -mkdir /abc 递归层级创建文件夹:bin/hdfs dfs -mkdir -p /abc/def
3.上传文件到hdfs: bin/hdfs dfs -put ~/tmp/words.txt /abc/
通过shell操作hdfs数据
1.查看目录: bin/hdfs dfs -ls /
2.创建目录: bin/hdfs dfs -mkdir /abc 递归层级创建文件夹:bin/hdfs dfs -mkdir -p /abc/def
3.上传文件到hdfs: bin/hdfs dfs -put ~/tmp/words.txt /abc/