You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2016/07/13 08:55:21 UTC

[jira] [Created] (AMBARI-17685) Syntax error in ambari-server/src/main/resources/custom_actions/scripts/check_host.py

Andrew Onischuk created AMBARI-17685:
----------------------------------------

             Summary: Syntax error in ambari-server/src/main/resources/custom_actions/scripts/check_host.py
                 Key: AMBARI-17685
                 URL: https://issues.apache.org/jira/browse/AMBARI-17685
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.4.0
         Attachments: AMBARI-17685.patch

Check DB connection failed with the following error:

    
    
    
    2016-07-13 01:01:18,989 - Error installing java.
    Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 383, in execute_db_connection_check
        Directory(java_home, user=getpass.getuser(), recursive_ownership=True)
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 147, in __init__
        raise Fail("%s received unsupported argument %s" % (self, key))
    Fail: Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    2016-07-13 01:01:19,164 - Check db_connection_check was unsuccessful. Exit code: 1. Message: Error installing java.
    Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 506, in <module>
        CheckHost().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 206, in actionexecute
        raise Fail(error_message)
    resource_management.core.exceptions.Fail: Check db_connection_check was unsuccessful. Exit code: 1. Message: Error installing java.
    Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    

Looks like `user` is not a valid parameter.

Full context of the call

    
    
    
    [?1034h2016-07-13 01:01:12,230 - Host checks started.
    2016-07-13 01:01:12,230 - Check execute list: db_connection_check
    2016-07-13 01:01:12,230 - DB connection check started.
    
    2016-07-13 01:01:13,050 - Directory['/usr/jdk64'] {}
    2016-07-13 01:01:13,058 - Creating directory Directory['/usr/jdk64'] since it doesn't exist.
    2016-07-13 01:01:13,060 - Execute[('chmod', 'a+x', '/usr/jdk64')] {'not_if': 'test -e /usr/jdk64/jdk1.8.0_60/bin/java', 'sudo': True}
    2016-07-13 01:01:13,078 - Execute['cd /var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx && tar -xf /var/lib/ambari-agent/cache/jdk-8u60-linux-x64.tar.gz && ambari-sudo.sh cp -rp /var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx/* /usr/jdk64'] {'not_if': 'test -e /usr/jdk64/jdk1.8.0_60/bin/java'}
    2016-07-13 01:01:18,988 - File['/usr/jdk64/jdk1.8.0_60/bin/java'] {'mode': 0755, 'cd_access': 'a'}
    2016-07-13 01:01:18,989 - Error installing java.
    Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 383, in execute_db_connection_check
        Directory(java_home, user=getpass.getuser(), recursive_ownership=True)
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 147, in __init__
        raise Fail("%s received unsupported argument %s" % (self, key))
    Fail: Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    2016-07-13 01:01:18,990 - Directory['/usr/jdk64/jdk1.8.0_60'] {'recursive_ownership': True}
    2016-07-13 01:01:18,991 - Directory['/var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx'] {'action': ['delete']}
    2016-07-13 01:01:18,991 - Removing directory Directory['/var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx'] and all its content
    2016-07-13 01:01:19,164 - Host checks completed.
    2016-07-13 01:01:19,164 - Check db_connection_check was unsuccessful. Exit code: 1. Message: Error installing java.
    Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
    
    Command failed after 1 tries
    





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)