[ 
https://issues.apache.org/jira/browse/AMBARI-17685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15375010#comment-15375010
 ] 

Hudson commented on AMBARI-17685:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #5293 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/5293/])
AMBARI-17685. Syntax error in (aonishuk: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a5ff53ce81b95324a773c493ef9e8ea20e5e332b])
* ambari-server/src/main/resources/custom_actions/scripts/check_host.py


> 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)

Reply via email to