Exception in thread “main” org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://ruozeclusterg7/ruozedata/wc/input
问题:
- hadoop fs -mkdir -p /ruozedata/wc/input
- hadoop fs -put wc.data /ruozedata/wc/input
- hadoop jar ruozedata-hadoop-1.0.jar com.ruozedata.bigdata.hadoop.mapreduce.MapReduceYARNApp /ruozedata/wc/input/ /ruozedata/wc/
- Exception in thread “main” org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://ruozeclusterg7/ruozedata/wc/input
解决方法:
- hdfs dfs -mkdir -p /ruozedata/wc/input
- hdfs dfs -put wc.data /ruozedata/wc/input
- hadoop jar ruozedata-hadoop-1.0.jar com.ruozedata.bigdata.hadoop.mapreduce.MapReduceYARNApp /ruozedata/wc/input/ /ruozedata/wc/