[ 
https://issues.apache.org/jira/browse/AMBARI-13981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tuong Truong updated AMBARI-13981:
----------------------------------
    Description: 
When last login is enable, Ambari services will fail to start due to bhandle 
REST return code:

File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
 line 283, in _get_file_status
    list_status = self.util.run_command(target, 'GETFILESTATUS', method='GET', 
ignore_status_codes=['404'], assertable_result=False)
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
 line 201, in run_command
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w 
'%{http_code}' -X GET 
'http://xxxxx:50070/webhdfs/v1/user/spark?op=GETFILESTATUS&user.name=hdfs'' 
returned status_code=015. 
{"FileStatus":{"accessTime":0,"blockSize":0,"childrenNum":0,"fileId":16680,"group":"hdfs","length":0,"modificationTime":1442426877493,"owner":"spark","pathSuffix":"","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"}}200Last
 login: Wed Sep 16 15:17:25 EDT 2

  was:
When last login is enable, Ambari services will fail to start due to bhandle 
REST return code:

File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
 line 283, in _get_file_status
    list_status = self.util.run_command(target, 'GETFILESTATUS', method='GET', 
ignore_status_codes=['404'], assertable_result=False)
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
 line 201, in run_command
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w 
'%{http_code}' -X GET 
'http://biginsightx1.aswpoc.org:50070/webhdfs/v1/user/spark?op=GETFILESTATUS&user.name=hdfs''
 returned status_code=015. 
{"FileStatus":{"accessTime":0,"blockSize":0,"childrenNum":0,"fileId":16680,"group":"hdfs","length":0,"modificationTime":1442426877493,"owner":"spark","pathSuffix":"","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"}}200Last
 login: Wed Sep 16 15:17:25 EDT 2


> When enable last login/access via /etc/pam.d/system-auth,  Ambari failes to 
> handle  the REST return code properly
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-13981
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13981
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Tuong Truong
>              Labels: REST
>
> When last login is enable, Ambari services will fail to start due to bhandle 
> REST return code:
> File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
>  line 283, in _get_file_status
>     list_status = self.util.run_command(target, 'GETFILESTATUS', 
> method='GET', ignore_status_codes=['404'], assertable_result=False)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
>  line 201, in run_command
>     raise Fail(err_msg)
> resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w 
> '%{http_code}' -X GET 
> 'http://xxxxx:50070/webhdfs/v1/user/spark?op=GETFILESTATUS&user.name=hdfs'' 
> returned status_code=015. 
> {"FileStatus":{"accessTime":0,"blockSize":0,"childrenNum":0,"fileId":16680,"group":"hdfs","length":0,"modificationTime":1442426877493,"owner":"spark","pathSuffix":"","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"}}200Last
>  login: Wed Sep 16 15:17:25 EDT 2



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

Reply via email to