Created 05-25-2016 11:42 AM
Hi
I am trying to run mapreduce program in eclipse on centOS 7. I am facing below issue:
Exception in thread "main" java.lang.NoSuchFieldError: IBM_JAVA at org.apache.hadoop.security.UserGroupInformation.getOSLoginModuleName(UserGroupInformation.java:353) at org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:398) at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:81) at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75) at org.apache.hadoop.mapred.JobClient.init(JobClient.java:470) at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:449) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:832) at hadoop.ProcessUnits.main(ProcessUnits.java:91)
I have added external .jar file (hadoop-auth-2.6.0.jar) but not able to run this successfully.
Can anyone please help!
Created 05-25-2016 01:38 PM
Are you using IBM JAVA? If so that may be causing issues. Below are the supported JDKs.
Can you try using OpenJDK or Oracle JDK ?
Created 05-25-2016 03:08 PM
How would I get to know whether it is a IBM or Oracle Java? Can you please point me?
Created 05-26-2016 02:02 PM
Yes, I am using Oracle JDK 1.7 and still getting this error.