Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10415

Sometimes Datanode start fails when using non-default umask

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      1.Set umask to 0027
      2.Install ambari-server
      3.Deploy ambari
      Datanode start fails with stderr :

      2015-03-22 19:21:38,154 - Error while executing command 'start':\nTraceback (most recent call last):\n File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\", line 214, in execute\n method(env)\n File \"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py\", line 63, in start\n datanode(action=\"start\")\n File \"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_datanode.py\", line 61, in datanode\n create_log_dir=True\n File \"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/utils.py\", line 219, in service\n environment=hadoop_env_exports\n File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 148, in _init_\n self.env.run()\n File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", line 152, in run\n self.run_action(resource, action)\n File \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", line 118, in run_action\n provider_action()\n File \"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\", line 274, in action_run\n raise ex\nFail: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ; /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /etc/hadoop/conf start datanode'' returned 1. starting datanode, logging to /grid/0/log/hadoop/hdfs/hadoop-hdfs-datanode-hea-testooziehivedatabaseoptions-ubu12-4515-5.out\r\n/usr/hdp/2.2.4.0-2626//hadoop-hdfs/bin/hdfs.distro: line 281: /usr/jdk64/jdk1.7.0_67/bin/java: Permission denied\r\n/usr/hdp/2.2.4.0-2626//hadoop-hdfs/bin/hdfs.distro: line 281: exec: /usr/jdk64/jdk1.7.0_67/bin/java: cannot execute: Permission denied

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: