hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Pawar <nitinpawar...@gmail.com>
Subject Re: Error when connecting Hive
Date Fri, 07 Mar 2014 18:29:56 GMT
somehow looks like hive is not able to find hadoop libs


On Fri, Mar 7, 2014 at 11:48 PM, Manish <manishbhoge@rocketmail.com> wrote:

> Please look into the below issue & help.
>
>
>
> -------- Original Message --------
> Subject:        Error when connecting Hive
> Date:   Fri, 07 Mar 2014 20:51:25 +0530
> From:   Manish <manishbhoge@rocketmail.com>
> Reply-To:       user@hive.apache.org
> To:     user@hive.apache.org <user@hive.apache.org>
>
>
>
> 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
>
>
>
>


-- 
Nitin Pawar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message