hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manish <manishbh...@rocketmail.com>
Subject Error when connecting Hive
Date Fri, 07 Mar 2014 15:21:25 GMT
I am getting below error when connecting to hive shell. I thought it is 
because of log directory issue. But even fixing the directory permission 
the error still exists.

manish@localhost:/tmp/manish$ hive
Logging initialized using configuration in 
file:/etc/hive/conf.dist/hive-log4j.properties
Hive history 
file=/tmp/manish/hive_job_log_b53b2f66-a751-4a9c-9e4d-6ee64156e21f_1189315217.txt
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/hadoop/security/authentication/util/KerberosName
     at 
org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:214)
     at 
org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:277)
     at 
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:668)
     at 
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:573)
     at 
org.apache.hadoop.hive.shims.HadoopShimsSecure.getUGIForConf(HadoopShimsSecure.java:520)
     at 
org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator.setConf(HadoopDefaultAuthenticator.java:51)
     at 
org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
     at 
org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
     at 
org.apache.hadoop.hive.ql.metadata.HiveUtils.getAuthenticator(HiveUtils.java:365)
     at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:304)
     at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:669)
     at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:613)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
Caused by: java.lang.ClassNotFoundException: 
org.apache.hadoop.security.authentication.util.KerberosName
     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:424)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     ... 17 more


Mime
View raw message