ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 34202: PIG service check fails on enabling security
Date Thu, 14 May 2015 09:08:15 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34202/
-----------------------------------------------------------

Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-11124
    https://issues.apache.org/jira/browse/AMBARI-11124


Repository: ambari


Description
-------

On enabling security PIG service check fails. Noticed this on devdeploy test
run.

Logs:

    
    
    stderr:   /var/lib/ambari-agent/data/errors-609.txt
    
    2015-05-13 20:11:15,910 - Error while executing command 'service_check':
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/service_check.py",
line 50, in service_check
        params.HdfsResource(None, action="execute")
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
line 101, in action_execute
        user=user
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 269, in action_run
        raise ex
    Fail: Execution of '/usr/bin/kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs@EXAMPLE.COM'
returned 125. su: user hdfs@EXAMPLE.COM does not exist
    stdout:   /var/lib/ambari-agent/data/output-609.txt
    
    2015-05-13 20:11:15,770 - HdfsResource['/user/ambari-qa/pigsmoke.out'] {'security_enabled':
True, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': '/etc/security/keytabs/hdfs.headless.keytab',
'kinit_path_local': '/usr/bin/kinit', 'user': 'ambari-qa', 'action': ['delete_on_execute'],
'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'directory'}
    2015-05-13 20:11:15,772 - HdfsResource['/user/ambari-qa/passwd'] {'security_enabled':
True, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': '/etc/security/keytabs/hdfs.headless.keytab',
'kinit_path_local': '/usr/bin/kinit', 'source': '/etc/passwd', 'user': 'ambari-qa', 'action':
['create_on_execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file'}
    2015-05-13 20:11:15,772 - HdfsResource['None'] {'security_enabled': True, 'hadoop_bin_dir':
'/usr/hdp/current/hadoop-client/bin', 'keytab': '/etc/security/keytabs/hdfs.headless.keytab',
'kinit_path_local': '/usr/bin/kinit', 'user': 'hdfs@EXAMPLE.COM', 'action': ['execute'], 'hadoop_conf_dir':
'/usr/hdp/current/hadoop-client/conf'}
    2015-05-13 20:11:15,773 - Execute['/usr/bin/kinit -kt /etc/security/keytabs/hdfs.headless.keytab
hdfs@EXAMPLE.COM'] {'user': 'hdfs@EXAMPLE.COM'}
    2015-05-13 20:11:15,910 - Error while executing command 'service_check':
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 214, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/service_check.py",
line 50, in service_check
        params.HdfsResource(None, action="execute")
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
line 101, in action_execute
        user=user
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148,
in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
152, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
118, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 269, in action_run
        raise ex
    Fail: Execution of '/usr/bin/kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs@EXAMPLE.COM'
returned 125. su: user hdfs@EXAMPLE.COM does not exist


Diffs
-----

  ambari-server/src/main/resources/common-services/PIG/0.12.0.2.0/package/scripts/params_linux.py
5bcffc7 
  ambari-server/src/test/python/stacks/2.2/PIG/test_pig_service_check.py b7968d2 

Diff: https://reviews.apache.org/r/34202/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message