Ubuntu: hadoop mapreduce Program :after compillation I see the following errors



Question:

Warning: $HADOOP_HOME is deprecated.    17/01/18 14:45:44 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.  17/01/18 14:45:44 WARN mapred.JobClient: No job jar file set.  User classes may not be found. See JobConf(Class) or JobConf#setJar(String).  17/01/18 14:45:44 INFO mapred.JobClient: Cleaning up the staging area hdfs://localhost:54310/app/hadoop/tmp/mapred/staging/hduser/.staging/job_201701181432_0001  17/01/18 14:45:44 ERROR security.UserGroupInformation: PriviledgedActionException as:hduser cause:org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://localhost:54310/user/hduser/input  Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: hdfs://localhost:54310/user/hduser/input      at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:235)      at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:252)      at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:962)      at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:979)      at org.apache.hadoop.mapred.JobClient.access$600(JobClient.java:174)      at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:897)      at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)      at java.security.AccessController.doPrivileged(Native Method)      at javax.security.auth.Subject.doAs(Subject.java:415)      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)      at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850)      at org.apache.hadoop.mapreduce.Job.submit(Job.java:500)      at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)      at WordCount.main(WordCount.java:58)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)      at java.lang.reflect.Method.invoke(Method.java:606)      at org.apache.hadoop.util.RunJar.main(RunJar.java:156)  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »