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.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext

Highlighted

java.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext

Expert Contributor
HI, Cloudera support     CDH version: 5.5.1 MySQL version:  5.6   when i use sqoop to import mysql data into hive,  it's failed. the sqoop command is below:   Sqoop command arguments : import -connect jdbc:mysql://10.32.113.14:3306/prmt -username cust -password Flzxsqc!Ysyhljt -table t_promotion_qualification -hive-table t_promotion_qualification -hive-database prmt -hive-import -hive-overwrite -m 1   but it always happend like below:   Logging initialized using configuration in jar:file:/data03/yarn/nm/filecache/564/hive-exec.jar!/hive-log4j.properties hive.exec.post.hooks Class not found:com.cloudera.navigator.audit.hive.HiveExecHookContext FAILED: Hive Internal Error: java.lang.ClassNotFoundException(com.cloudera.navigator.audit.hive.HiveExecHookContext) java.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(HookUtils.java:60) at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1294) at org.apache.hadoop.hive.ql.Driver.getHooks(Driver.java:1278)     if i use mysql5.6 jar, the above errors happend, if i use mysql5.1/5.0 jar, the error is diffierent.     who has been caught this kind issue, pls give me some advise  
4 REPLIES 4
Highlighted

Re: java.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext

Expert Contributor
sorry about the above text style , i am going to describe my issue again. software version : CDH5.5.1, MySQL 5.6 after installation, i am going to test OOZIE job like MR, SQOOP, HIVE, SSH etc. MR and HIVE is ok. Sqoop always failed , because the Class not found error. the errors is below: ava.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext and SSH also failed, my cluster machines all has been set to root passness, but it's still failed. who have experience on this issue ? give me some advises , thanks.
Highlighted

Re: java.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext

Expert Contributor

i have tested in os level by sqoop command, it's success.

 

Cloudera support, could you give me some advises,  i am really urgent .

Highlighted

Re: java.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext

Expert Contributor
got to resloved.

just mark the hook property in the hive-site.xml

Re: java.lang.ClassNotFoundException: com.cloudera.navigator.audit.hive.HiveExecHookContext

New Contributor

I am experiencing this same problem; I searched for 'hook' (case insensitive) in hive-site.xml and Cloudera Manager but could not find anything.

 

Could you please tell me specifically which configuration you were setting?

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