Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

java.lang.NoSuchFieldError: IBM_JAVA | MapReduce program in Eclipse

java.lang.NoSuchFieldError: IBM_JAVA | MapReduce program in Eclipse

New Contributor

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!

3 REPLIES 3

Re: java.lang.NoSuchFieldError: IBM_JAVA | MapReduce program in Eclipse

Guru

Are you using IBM JAVA? If so that may be causing issues. Below are the supported JDKs.

  • Oracle JDK 1.8 64-bit (minimum JDK 1.8_60) (default)
  • Oracle JDK 1.7 64-bit (minimum JDK 1.7_67)
  • OpenJDK 8 64-bit (not supported on SLES)
  • OpenJDK 7 64-bit (not supported on SLES

Can you try using OpenJDK or Oracle JDK ?

Re: java.lang.NoSuchFieldError: IBM_JAVA | MapReduce program in Eclipse

New Contributor

How would I get to know whether it is a IBM or Oracle Java? Can you please point me?

Re: java.lang.NoSuchFieldError: IBM_JAVA | MapReduce program in Eclipse

New Contributor

Yes, I am using Oracle JDK 1.7 and still getting this error.

Don't have an account?
Coming from Hortonworks? Activate your account here