Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Sun JDK 1.6.033: java.lang.ClassNotFoundException: com.sun.security.auth.UnixPrincipal


Copy link to this message
-
Sun JDK 1.6.033: java.lang.ClassNotFoundException: com.sun.security.auth.UnixPrincipal
Hi guys: Im getting this very odd error in my sun / ubuntu / hadoop run.

-  im not running a hadoop cluster here, just some local FS java hadoop
map/r jobs.
- The exception Im getting on FileSystem.get(conf) is
"java.lang.ClassNotFoundException: com.sun.security.auth.UnixPrincipal"

Here are my specs :

vagrant@precise64:~/Development/workspace/pisae$ grep 'hadoop' ./ivy.xml
*<dependency org="org.apache.hadoop" name="hadoop-core" rev="0.20.205.0"/>
*
vagrant@precise64:~/Development/workspace/pisae$ java -version
*java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
*
vagrant@precise64:~/Development/workspace/pisae$ lsb_release -a
No LSB modules are available.
*Distributor ID:    Ubuntu
Description:    Ubuntu 12.04 LTS
Release:    12.04
Codename:    precise*

The error :

/home/vagrant/Development/workspace/pisae/build.xml:222:
java.lang.NoClassDefFoundError: com/sun/security/auth/UnixPrincipal
    at
org.apache.hadoop.security.UserGroupInformation.<clinit>(UserGroupInformation.java:246)
    at
org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1436)
    at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1337)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:244)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:122)
...
Caused by: java.lang.ClassNotFoundException:
com.sun.security.auth.UnixPrincipal
    at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
    at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
    at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1070)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 38 more

Any thoughts?  Thanks!
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB