hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-3677) If "hadoop.security.authorization" is set to true, NM is not starting.
Date Tue, 22 Apr 2014 01:03:29 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-3677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13976262#comment-13976262

Chen He commented on MAPREDUCE-3677:

"hadoop.security.authorization" is for secue RPC accessibility. I am not sure why you need
to start nodemanager as root. But I did investigation based on Hadoop 0.23.10.
 I change hadoop/bin/yarn a little bit. I am using Java 1.7.0_45 and it reports illegal argument
"-jvm".  I comment following lines in hadoop/bin/yarn:

  #if [[ $EUID -eq 0 ]]; then
It works fine. Feel free to make any comments. If there is no response, I will close this
JIRA in 3 days.

> If "hadoop.security.authorization" is set to true, NM is not starting.
> ----------------------------------------------------------------------
>                 Key: MAPREDUCE-3677
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3677
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 0.23.0
>            Reporter: Ramgopal N
>            Assignee: Chen He
> I have the hadoop cluster setup with root user.Accidentally i have set hadoop.security.authorization
to true.I have not set any permissions in policy.xml.When i am trying to start the NM with
root user ...it is throwing the following error
> Exception in thread "main" java.lang.NoClassDefFoundError: nodemanager
> Caused by: java.lang.ClassNotFoundException: nodemanager
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
> Could not find the main class: nodemanager.  Program will exit.

This message was sent by Atlassian JIRA

View raw message