ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitro Lisnichenko" <dlysniche...@hortonworks.com>
Subject Re: Review Request 21162: When restart hive service from Ambari webUI, it fails with the error: cat: /var/run/hive/hive.pid: No such file or directory
Date Wed, 07 May 2014 15:08:32 GMT

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

Ship it!


Ship It!

- Dmitro Lisnichenko


On May 7, 2014, 2:59 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/21162/
> -----------------------------------------------------------
> 
> (Updated May 7, 2014, 2:59 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-5697
>     https://issues.apache.org/jira/browse/AMBARI-5697
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> PROBLEM: When hive metastore is down. We tried to push the new configuration
> to hive service from Ambari webUI. It fails to restart the hive metastore.
> 
> STEPS TO REPRODUCE:
> 
> 1\. Bring hive metastore down  
> 2\. Change the hive configuration.  
> 3\. Click the restart button.
> 
> ACTUAL BEHAVIOR: Th restart ops fails with error:
> 
> 2014-04-29 19:02:42,531 - Execute['kill `cat /var/run/hive/hive.pid`
> >/dev/null 2>&1 && rm -f /var/run/hive/hive.pid'] {}  
> 2014-04-29 19:02:42,555 - Error while executing command 'restart':  
> Traceback (most recent call last):  
> File "/usr/lib/python2.6/site-
> packages/resource_management/libraries/script/script.py", line 106, in execute  
> method(env)  
> File "/usr/lib/python2.6/site-
> packages/resource_management/libraries/script/script.py", line 206, in restart  
> self.stop(env)  
> File "/var/lib/ambari-
> agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_metastore.py",
> line 52, in stop  
> action = 'stop'  
> File "/var/lib/ambari-
> agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_service.py",
> line 55, in hive_service  
> Execute(demon_cmd)  
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line
> 148, in __init__  
> self.env.run()  
> File "/usr/lib/python2.6/site-
> packages/resource_management/core/environment.py", line 149, in run  
> self.run_action(resource, action)  
> File "/usr/lib/python2.6/site-
> packages/resource_management/core/environment.py", line 115, in run_action  
> provider_action()  
> File "/usr/lib/python2.6/site-
> packages/resource_management/core/providers/system.py", line 239, in
> action_run  
> raise ex  
> Fail: Execution of 'kill `cat /var/run/hive/hive.pid` >/dev/null 2>&1 &&
rm -f
> /var/run/hive/hive.pid' returned 1. cat: /var/run/hive/hive.pid: No such file
> or directory
> 
> EXPECTED BEHAVIOR: When the hive metastore is down, amabri should skip the
> stop operation as above.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HIVE/package/scripts/hive_service.py
70a300d 
>   ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_service.py
70a300d 
>   ambari-server/src/test/python/stacks/1.3.2/HIVE/test_hive_metastore.py 5a1b061 
>   ambari-server/src/test/python/stacks/1.3.2/HIVE/test_hive_server.py 1b77b0b 
>   ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py f5148ff 
>   ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py d2a0390 
>   ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py 111d8b3 
> 
> Diff: https://reviews.apache.org/r/21162/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message