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

Matt commented on AMBARI-17039:
-------------------------------

[~rzang]

I hit an issue recently (see log below). It looks like it is related to the 
patch that was committed as part of this JIRA. 
I'm investigating further from my side.

```
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py",
 line 174, in <module>
    DataNode().execute()
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 257, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py",
 line 47, in install
    import params
  File 
"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params.py",
 line 25, in <module>
    from params_linux import *
  File 
"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py",
 line 426, in <module>
    config['configurations']['hdfs-site']['dfs.https.enable'])
  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/hdfs_utils.py",
 line 29, in is_https_enabled_in_hdfs
    if not is_empty(dfs_http_policy):
NameError: global name 'is_empty' is not defined
```

> Takes long time to start or fail to start service after enabling SSL due to 
> "dfs.https.enable"
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17039
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17039
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.2.1.1
>            Reporter: Richard Zang
>            Assignee: Richard Zang
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17039.patch
>
>
> *SYMPTOM:*
> After enabling SSL on HDFS, starting services, such as YARN takes long time 
> because Ambari keeps checking http:// , not https://
> {noformat}
> 2016-06-02 23:07:22,221 - Getting jmx metrics from NN failed. URL: 
> http://dev-hdp-mas-w2a-a.corporate.t-mobile.com:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesys...
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/jmx.py",
>  line 38, in get_value_from_jmx
>     _, data, _ = get_user_call_output(cmd, user=run_user, quiet=False)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_user_call_output.py",
>  line 61, in get_user_call_output
>     raise Fail(err_msg)
> Fail: Execution of 'curl --negotiate -u : -s 
> 'http://dev-hdp-mas-w2a-a.corporate.t-mobile.com:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesys...'
>  1>/tmp/tmpOGkdi9 2>/tmp/tmpCUfr6B' returned 7. 
> 2016-06-02 23:07:24,506 - Getting jmx metrics from NN failed. URL: 
> http://dev-hdp-mas-w2b-a.corporate.t-mobile.com:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesys...
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/jmx.py",
>  line 38, in get_value_from_jmx
>     _, data, _ = get_user_call_output(cmd, user=run_user, quiet=False)
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/get_user_call_output.py",
>  line 61, in get_user_call_output
>     raise Fail(err_msg)
> Fail: Execution of 'curl --negotiate -u : -s 
> 'http://dev-hdp-mas-w2b-a.corporate.t-mobile.com:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesys...'
>  1>/tmp/tmpDF9Kqb 2>/tmp/tmpBgbC4P' returned 7.
> {noformat}



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

Reply via email to