FAQ
The command is executed on the Hue machine itself. Is the 'myuser' user
existing there?

Can you login as 'hue' on the Hue machine and execute?:


/usr/share/hue/apps/shell/src/shell/build/setuid 1001 1001
/usr/lib/pig/../../bin/pig -l /dev/null

Romain


On Sun, Jun 23, 2013 at 5:56 AM, ignorant wrote:

Hi,

I am trying out this application stack for the first time and don't know
the ins and outs yet. I installed CDH4 free version to create a two cluster
node in AWS. Everything seems to have gone smoothly. However when I go to
Hue Shell and try to use any of the three options provided, I get the
following in logs -


[23/Jun/2013 05:46:57 +0000] shellmanager ERROR myuser - shell_id:3 - Could not create pig shell
Traceback (most recent call last):
File "/usr/share/hue/apps/shell/src/shell/shellmanager.py", line 544, in try_create
shell_instance = Shell(command, subprocess_env, shell_id, username, self._delegation_token_dir)
File "/usr/share/hue/apps/shell/src/shell/shellmanager.py", line 106, in __init__
env=subprocess_env, close_fds=True)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied


[23/Jun/2013 05:46:57 +0000] shellmanager DEBUG Starting subprocess with command '['/usr/share/hue/apps/shell/src/shell/build/setuid', '1001', '1001', '/usr/lib/pig/../../bin/pig', '-l', '/dev/null']' and environment '{'HOME': '/home/myuser', 'HADOOP_CONF_DIR': '/run/cloudera-scm-agent/process/31-hue-HUE_SERVER/hadoop-conf', 'JAVA_HOME': '/usr/lib/jvm/j2sdk1.6-oracle', 'HADOOP_MAPRED_HOME': '/usr/lib/hadoop-0.20-mapreduce'}'


[23/Jun/2013 05:46:57 +0000] shellmanager DEBUG Clusters to potentially acquire tokens for: [<hadoop.job_tracker.livejobtracker object@0x4176fd0>, <hadoop.fs.webhdfs.webhdfs object@0x3295ed0>]


[23/Jun/2013 05:46:57 +0000] shellmanager DEBUG myuser - shell_id:3 - Creating pig shell with command '['/usr/lib/pig/../../bin/pig', '-l', '/dev/null']'


I went ahead and created this user locally on all three nodes (CDH node
and two provisioned nodes). I made sure that they had the same password as
the one that I am entering in User Admin and have home directories.
However, I cannot get this to work.

Ideas?

Thanks

--

---
You received this message because you are subscribed to the Google Groups
"CDH Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to cdh-user+unsubscribe@cloudera.org.
For more options, visit
https://groups.google.com/a/cloudera.org/groups/opt_out.

Search Discussions

  • Abraham Elmahrek at Jun 24, 2013 at 5:29 pm
    Please make sure that '/usr/share/hue/apps/shell/src/shell/build/setuid'
    has the access rights 4711 and is owned by root:hue.

    the setuid bit is set so that the executing user (hue) can execute the
    passed executable as a different user. In order to do that, the owner of
    the setuid program must have privileges to change the effective user id and
    group id of the process (generally root).

    As Romain said above, try that command.

    -Abe

    On Mon, Jun 24, 2013 at 9:31 AM, Romain Rigaux wrote:

    The command is executed on the Hue machine itself. Is the 'myuser' user
    existing there?

    Can you login as 'hue' on the Hue machine and execute?:


    /usr/share/hue/apps/shell/src/shell/build/setuid 1001 1001 /usr/lib/pig/../../bin/pig -l /dev/null

    Romain


    On Sun, Jun 23, 2013 at 5:56 AM, ignorant wrote:

    Hi,

    I am trying out this application stack for the first time and don't know
    the ins and outs yet. I installed CDH4 free version to create a two cluster
    node in AWS. Everything seems to have gone smoothly. However when I go to
    Hue Shell and try to use any of the three options provided, I get the
    following in logs -


    [23/Jun/2013 05:46:57 +0000] shellmanager ERROR myuser - shell_id:3 - Could not create pig shell
    Traceback (most recent call last):
    File "/usr/share/hue/apps/shell/src/shell/shellmanager.py", line 544, in try_create
    shell_instance = Shell(command, subprocess_env, shell_id, username, self._delegation_token_dir)
    File "/usr/share/hue/apps/shell/src/shell/shellmanager.py", line 106, in __init__
    env=subprocess_env, close_fds=True)
    File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
    File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
    OSError: [Errno 13] Permission denied


    [23/Jun/2013 05:46:57 +0000] shellmanager DEBUG Starting subprocess with command '['/usr/share/hue/apps/shell/src/shell/build/setuid', '1001', '1001', '/usr/lib/pig/../../bin/pig', '-l', '/dev/null']' and environment '{'HOME': '/home/myuser', 'HADOOP_CONF_DIR': '/run/cloudera-scm-agent/process/31-hue-HUE_SERVER/hadoop-conf', 'JAVA_HOME': '/usr/lib/jvm/j2sdk1.6-oracle', 'HADOOP_MAPRED_HOME': '/usr/lib/hadoop-0.20-mapreduce'}'


    [23/Jun/2013 05:46:57 +0000] shellmanager DEBUG Clusters to potentially acquire tokens for: [<hadoop.job_tracker.livejobtracker object@0x4176fd0>, <hadoop.fs.webhdfs.webhdfs object@0x3295ed0>]


    [23/Jun/2013 05:46:57 +0000] shellmanager DEBUG myuser - shell_id:3 - Creating pig shell with command '['/usr/lib/pig/../../bin/pig', '-l', '/dev/null']'


    I went ahead and created this user locally on all three nodes (CDH node
    and two provisioned nodes). I made sure that they had the same password as
    the one that I am entering in User Admin and have home directories.
    However, I cannot get this to work.

    Ideas?

    Thanks

    --

    ---
    You received this message because you are subscribed to the Google Groups
    "CDH Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to cdh-user+unsubscribe@cloudera.org.
    For more options, visit
    https://groups.google.com/a/cloudera.org/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphue-user @
categorieshadoop
postedJun 24, '13 at 4:32p
activeJun 24, '13 at 5:29p
posts2
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Romain Rigaux: 1 post Abraham Elmahrek: 1 post

People

Translate

site design / logo © 2022 Grokbase