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


Ship it!




Ship It!

- Vitalyi Brodetskyi


On Квітень 5, 2016, 12:21 після полудня, Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45745/
> -----------------------------------------------------------
> 
> (Updated Квітень 5, 2016, 12:21 після полудня)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-15713
>     https://issues.apache.org/jira/browse/AMBARI-15713
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The `namenode_ha_utils.py` uses the deprecated `hdfs-site/dfs.https.enable`
> property. As a result, when starting components like MapR History Server, they
> will fail when NameNode is protected by SSL:
> 
>     
>     
>     
>     2016-01-11 14:19:32,903 - checked_call['ambari-sudo.sh su nzhdfs -l -s 
> /bin/bash -c 'curl --negotiate -u : -s 
> '"'"'http://nhgab001.tst.server.com:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem'"'"'
>  1>/tmp/tmpxmvioB 2>/tmp/tmpZcxPOR''] {'quiet': False}
>     2016-01-11 14:19:32,980 - Getting jmx metrics from NN failed. URL: 
> http://nhgab001.tst.server.com:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem
>     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 49, in get_user_call_output
>         func_result = func(shell.as_user(command_string, user), quiet=quiet, 
> **call_kwargs)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 
> 70, in inner
>         result = function(command, **kwargs)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 
> 92, in checked_call
>         tries=tries, try_sleep=try_sleep)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 
> 140, in _call_wrapper
>         result = _call(command, **kwargs_copy)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 
> 291, in _call
>         raise Fail(err_msg)
>     
> 
> Instead, `hdfs-site/dfs.http.policy` should be used.
> 
> 
> Diffs
> -----
> 
>   
> ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py
>  36a34c1 
> 
> Diff: https://reviews.apache.org/r/45745/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>

Reply via email to