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


Ship it!




Ship It!

- Dmitro Lisnichenko


On March 21, 2016, 3:33 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45106/
> -----------------------------------------------------------
> 
> (Updated March 21, 2016, 3:33 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-15491
>     https://issues.apache.org/jira/browse/AMBARI-15491
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> This is a copy from AMBARI-13946, but I believe it has enough information
> 
> After enabling NameNode-HA, hdfs-site.xml does still contain non-HA
> properties, including  
> dfs.namenode.rpc-address  
> dfs.namenode.http-address  
> dfs.namenode.https-address  
> This cause the balancer to fail with the following symptoms in Balancer:  
> ...
> 
>     
>     
>     
>     15/11/18 15:48:30 INFO balancer.Balancer: namenodes  = [hdfs://daplab2, 
> hdfs://daplab-rt-11.fri.lan:8020]
>     ...
> 
> java.io.IOException: Another Balancer is running.. Exiting ...  
> And ATS:
> 
>     
>     
>     
>     _assert_valid
>         self.target_status = self._get_file_status(target)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
>  line 292, 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 210, in run_command
>         raise Fail(err_msg)
>     resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w 
> '%{http_code}' -X GET 
> 'http://pvvsccmn1-brn1:50070/webhdfs/v1/ats/done?op=GETFILESTATUS&user.name=hdfs''
>  returned status_code=403. 
>     {
>       "RemoteException": {
>         "exception": "StandbyException", 
>         "javaClassName": "org.apache.hadoop.ipc.StandbyException", 
>         "message": "Operation category READ is not supported in state standby"
>       }
>     }
>     
>     
> 
> These should be removed from the config.
> 
> Steps to reproduce:Enable namenode HA on Ambari 2.2
> 
> Expected behavior: after turning on NameNode HA, grep grep dfs.namenode.http-
> address /etc/hadoop/conf/hdfs-site.xml shouldn't return anything
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/config-upgrade.xml 
> 440bd50 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/config-upgrade.xml 
> d826446 
> 
> Diff: https://reviews.apache.org/r/45106/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>

Reply via email to