ayush@ayush-Inspiron-3521:~/apps/h260$ jps
3474 ResourceManager
3603 NodeManager
3316 SecondaryNameNode
3957 Jps
3129 DataNode
2975 NameNode
ayush@ayush-Inspiron-3521:~/apps/h260$ bin/hdfs dfs -mkdir /user
ayush@ayush-Inspiron-3521:~/apps/h260$ bin/hdfs dfs -mkdir /user/ayush
ayush@ayush-Inspiron-3521:~/apps/h260$ bin/hdfs dfs -mkdir /input
ayush@ayush-Inspiron-3521:~/apps/h260$ bin/hdfs dfs -put input/ /input
ayush@ayush-Inspiron-3521:~/apps/h260$ bin/hadoop jar example.jar Firstjoin /input output
ayush@ayush-Inspiron-3521:~/apps/h260$ jps
3474 ResourceManager
3603 NodeManager
3316 SecondaryNameNode
3129 DataNode
4206 Jps
2975 NameNode
没有输出或错误,即没有发生任何动作
我有example.jar
类Firstjoin
和hdfs输入目录
还将文件复制到它。
任何暗示
提前谢谢
答案 0 :(得分:1)
hadoop dfs -ls /
并检查目录是否显示
5.尝试格式化namenode并再次重新启动集群...