Hello,
I'm getting the following messages when I try to run a job I've developed.
hadoop jar distanceCalc.jar DistanceCalc distanceCalculations
distanceCalculations/output9
10/07/28 09:25:37 WARN mapred.JobClient: Use GenericOptionsParser for
parsing the arguments. Applications should implement Tool for the same.
Exception in thread "main" java.lang.RuntimeException:
java.lang.NoSuchMethodException:
DistanceCalc$DistanceValuesInputFormat.<init>()
at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:115)
at org.apache.hadoop.mapred.JobConf.getInputFormat(JobConf.java:400)
at
org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:810)
at
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:781)
at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730)
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1249)
at DistanceCalc.main(DistanceCalc.java:228)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Caused by: java.lang.NoSuchMethodException:
DistanceCalc$DistanceValuesInputFormat.<init>()
at java.lang.Class.getConstructor0(Class.java:2706)
at java.lang.Class.getDeclaredConstructor(Class.java:1985)
at
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:109)
... 11 more
I'm obviously doing something wrong in the code but my question for this
thread is the warning message I'm receiving. I'm not quite sure what it
means and what I've seen on google so far is the warning has something to do
with Pig but I'm not using Pig. Can someone tell me what the warning means
please?
Thanks for your time
Erik