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


Ship it!




Ship It!

- Dmytro Sen


On Июль 20, 2016, 4:34 п.п., Dmitro Lisnichenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50244/
> -----------------------------------------------------------
> 
> (Updated Июль 20, 2016, 4:34 п.п.)
> 
> 
> Review request for Ambari, Dmytro Sen, Jonathan Hurley, and Nate Cole.
> 
> 
> Bugs: AMBARI-17816
>     https://issues.apache.org/jira/browse/AMBARI-17816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Rebalancing HDFS is failing with stderr :
> {code}
> Traceback (most recent call last):\n  File 
> \"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py\",
>  line 414, in <module>\n    NameNode().execute()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
>  line 280, in execute\n    method(env)\n  File 
> \"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py\",
>  line 342, in rebalancehdfs\n    logoutput = False,\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", line 
> 155, in __init__\n    self.env.run()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
> line 160, in run\n    self.run_action(resource, action)\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
> line 124, in run_action\n    provider_action()\n  File 
> \"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\",
>  line 273, in action_run\n    tries=self.reso
 urce.tries, try_sleep=self.resource.try_sleep)\n  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 
71, in inner\n    result = function(command, **kwargs)\n  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 
93, in checked_call\n    tries=tries, try_sleep=try_sleep)\n  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 
141, in _call_wrapper\n    result = _call(command, **kwargs_copy)\n  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 
265, in _call\n    raise 
Fail(err_msg)\nresource_management.core.exceptions.Fail: Caused by on_new_line 
function failed with exception for input argument '         0                  
0 B                 0 B                0 B':\nTraceback (most recent call 
last):\n  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", line 
262, in _call\n    on_new_line(line, out_fd == proc.stderr)\n  File 
\"/var/lib/am
 bari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py\", 
line 332, in handle_new_line\n    res['completePercent'] = 
calculateCompletePercent(parser.initialLine, pl)\n  File 
\"/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py\",
 line 306, in calculateCompletePercent\n    return 1.0 - 
current.bytesLeftToMove/first.bytesLeftToMove\nZeroDivisionError: float 
division by zero
> {code}
> 
> 
> Diffs
> -----
> 
>   
> ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
>  b37f413 
> 
> Diff: https://reviews.apache.org/r/50244/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>

Reply via email to