Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> is it possible to disable security in MapReduce to avoid having PriviledgedActionException?

Pedro Sá da Costa 2013-03-24, 19:27
Harsh J 2013-03-25, 02:11
Copy link to this message
Re: is it possible to disable security in MapReduce to avoid having PriviledgedActionException?
This is my error (stacktrace below). It cannot
find org.apache.hadoop.security.KerberosName class. But the strange is that
I  have hadoop-core-1.0.4-SNAPSHOT.jar in the classpath, and the path to
the jar is correct. I've no idea what the problem is. Any help?

java.io.IOException: failure to login
Caused by: javax.security.auth.login.LoginException:
java.lang.NoClassDefFoundError: Could not initialize class
 at org.apache.hadoop.security.User.<init>(User.java:44)
at org.apache.hadoop.security.User.<init>(User.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.login.LoginContext.login(LoginContext.java:576)
On 25 March 2013 02:11, Harsh J <[EMAIL PROTECTED]> wrote:

> What is the "exact" error you're getting? Can you please paste with
> the full stack trace and your version in use?
> Many times the PriviledgedActionException is just a wrapper around the
> real cause and gets overlooked. It does not necessarily appear due to
> security code (whether security is enabled or disabled).
> In any case, if you meant to run MR with zero UGI.doAs (which will
> wrap with that exception) then no, thats not possible to do.
> On Mon, Mar 25, 2013 at 12:57 AM, Pedro Sá da Costa <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > is it possible to disable security in MapReduce to avoid having
> > PriviledgedActionException?
> >
> > Thanks,
> >
> --
> Harsh J

Best regards,