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.

Error submitting workflow using AuthOozieClient in Kerberised Hadoop Cluster: java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil

Highlighted

Error submitting workflow using AuthOozieClient in Kerberised Hadoop Cluster: java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil

New Contributor

As suggested in many blogs, I am using AuthOozieClient for connecting to the Kerberised Hadoop Cluster and executing the workflow.xml.

The additional jars that I have added for using this class are – oozie-client-4.2.0.jar & commons-codec-1.7.jar.

However I am getting the following exception:

07:39:02,103 ERROR [stderr] (Thread-167) IO_ERROR : java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = Could not authenticate, java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil 07:39:02,103 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.validateWSVersion(OozieClient.java:374) 07:39:02,103 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.createURL(OozieClient.java:459) 07:39:02,103 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.access$000(OozieClient.java:80) 07:39:02,103 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient$ClientCallable.call(OozieClient.java:555) 07:39:02,103 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.run(OozieClient.java:850) 07:39:02,103 ERROR [stderr] (Thread-167) at com.hp.cae.sql.storm.bolt.JavaAnalysisBolt$JavaAnalysisThread.execute(JavaAnalysisBolt.java:412) 07:39:02,103 ERROR [stderr] (Thread-167) at com.hp.cae.sql.storm.bolt.JavaAnalysisBolt$JavaAnalysisThread.run(JavaAnalysisBolt.java:242) 07:39:02,104 ERROR [stderr] (Thread-167) Caused by: java.io.IOException: Error while connecting Oozie server. No of retries = 1. Exception = Could not authenticate, java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.retry.ConnectionRetriableClient.execute(ConnectionRetriableClient.java:66) 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.createRetryableConnection(OozieClient.java:504) 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.getSupportedProtocolVersions(OozieClient.java:384) 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient.validateWSVersion(OozieClient.java:344) 07:39:02,104 ERROR [stderr] (Thread-167) ... 8 more 07:39:02,104 ERROR [stderr] (Thread-167) Caused by: AUTHENTICATION : Could not authenticate, java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.AuthOozieClient.createConnection(AuthOozieClient.java:133) 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.OozieClient$1.doExecute(OozieClient.java:507) 07:39:02,104 ERROR [stderr] (Thread-167) at org.apache.oozie.client.retry.ConnectionRetriableClient.execute(ConnectionRetriableClient.java:44) 07:39:02,104 ERROR [stderr] (Thread-167) ... 11 more

Could anyone please suggestion how to resolve this issue?

2 REPLIES 2

Re: Error submitting workflow using AuthOozieClient in Kerberised Hadoop Cluster: java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil

@Anish Kumar where did you copy the JAR? Which JDK are you using? If Sun JDK, have you installed the JCE extension?

Highlighted

Re: Error submitting workflow using AuthOozieClient in Kerberised Hadoop Cluster: java.lang.ClassNotFoundException: sun.security.jgss.GSSUtil

New Contributor

@Olivier Renault I was able to solve the issue by adding path name under <dependencies> tag in module.xml of jboss.

<path name="sun/security/jgss"/>

Then restarted jboss server.

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