You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2016/11/28 12:15:40 UTC

Review Request 54118: HBASE service check fails if run with tty=true

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

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-18995
    https://issues.apache.org/jira/browse/AMBARI-18995


Repository: ambari


Description
-------

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf id1fac6fc8_date512616 /usr/hdp/current/hbase-client/bin/hbase &&  /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke-cleanup.sh' returned 1. 0 row(s) in 2.4870 seconds

0 row(s) in 1.2400 seconds

0 row(s) in 1.2300 seconds

0 row(s) in 0.0800 seconds

ROW                   COLUMN+CELL                                               
 row01                column=family:col01, timestamp=1477482811881, value=id1fac
                      6fc8_date512616                                           
1 row(s) in 0.0210 seconds

HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.1.2.2.5.0.0-1245, r53538b8ab6749cbb6fdc0fe448b89aa82495fb3f, Mon Oct 24 02:41:06 EDT 2016

hbase(main):001:0> scan 'ambarismoketest'
ROW                   COLUMN+CELL                                               
 row01                column=family:col01, timestamp=1477482811881, value=id1fac
                      6fc8_date512616                                           
1 row(s) in 0.2250 seconds

hbase(main):002:0> Looking for id1fac6fc8_date512616

The above exception was the cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py", line 97, in <module>
    HbaseServiceCheck().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 281, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py", line 93, in service_check
    logoutput = True
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf id1fac6fc8_date512616 /usr/hdp/current/hbase-client/bin/hbase &&  /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke-cleanup.sh' returned 1. 0 row(s) in 2.4920 seconds

0 row(s) in 1.2390 seconds

0 row(s) in 1.2280 seconds

0 row(s) in 0.0780 seconds

ROW                   COLUMN+CELL                                               
 row01                column=family:col01, timestamp=1477482834060, value=id1fac
                      6fc8_date512616                                           
1 row(s) in 0.0210 seconds

HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.1.2.2.5.0.0-1245, r53538b8ab6749cbb6fdc0fe448b89aa82495fb3f, Mon Oct 24 02:41:06 EDT 2016

hbase(main):001:0> scan 'ambarismoketest'
ROW                   COLUMN+CELL                                               
 row01                column=family:col01, timestamp=1477482834060, value=id1fac
                      6fc8_date512616                                           
1 row(s) in 0.2410 seconds

hbase(main):002:0> Looking for id1fac6fc8_date512616


Diffs
-----

  ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/files/hbaseSmokeVerify.sh 5c320c0 

Diff: https://reviews.apache.org/r/54118/diff/


Testing
-------


Thanks,

Andrew Onischuk


Re: Review Request 54118: HBASE service check fails if run with tty=true

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54118/#review157026
-----------------------------------------------------------


Ship it!




Ship It!

- Dmitro Lisnichenko


On Nov. 28, 2016, 2:15 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54118/
> -----------------------------------------------------------
> 
> (Updated Nov. 28, 2016, 2:15 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-18995
>     https://issues.apache.org/jira/browse/AMBARI-18995
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
>     result = _call(command, **kwargs_copy)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
>     raise ExecutionFailed(err_msg, code, out, err)
> ExecutionFailed: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf id1fac6fc8_date512616 /usr/hdp/current/hbase-client/bin/hbase &&  /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke-cleanup.sh' returned 1. 0 row(s) in 2.4870 seconds
> 
> 0 row(s) in 1.2400 seconds
> 
> 0 row(s) in 1.2300 seconds
> 
> 0 row(s) in 0.0800 seconds
> 
> ROW                   COLUMN+CELL                                               
>  row01                column=family:col01, timestamp=1477482811881, value=id1fac
>                       6fc8_date512616                                           
> 1 row(s) in 0.0210 seconds
> 
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 1.1.2.2.5.0.0-1245, r53538b8ab6749cbb6fdc0fe448b89aa82495fb3f, Mon Oct 24 02:41:06 EDT 2016
> 
> hbase(main):001:0> scan 'ambarismoketest'
> ROW                   COLUMN+CELL                                               
>  row01                column=family:col01, timestamp=1477482811881, value=id1fac
>                       6fc8_date512616                                           
> 1 row(s) in 0.2250 seconds
> 
> hbase(main):002:0> Looking for id1fac6fc8_date512616
> 
> The above exception was the cause of the following exception:
> 
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py", line 97, in <module>
>     HbaseServiceCheck().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 281, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/service_check.py", line 93, in service_check
>     logoutput = True
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
>     self.env.run()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
>     self.run_action(resource, action)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
>     provider_action()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
>     tries=self.resource.tries, try_sleep=self.resource.try_sleep)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
>     result = function(command, **kwargs)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
>     tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
>     result = _call(command, **kwargs_copy)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
>     raise ExecutionFailed(err_msg, code, out, err)
> resource_management.core.exceptions.ExecutionFailed: Execution of ' /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke.sh && /var/lib/ambari-agent/tmp/hbaseSmokeVerify.sh /usr/hdp/current/hbase-client/conf id1fac6fc8_date512616 /usr/hdp/current/hbase-client/bin/hbase &&  /usr/hdp/current/hbase-client/bin/hbase --config /usr/hdp/current/hbase-client/conf shell /var/lib/ambari-agent/tmp/hbase-smoke-cleanup.sh' returned 1. 0 row(s) in 2.4920 seconds
> 
> 0 row(s) in 1.2390 seconds
> 
> 0 row(s) in 1.2280 seconds
> 
> 0 row(s) in 0.0780 seconds
> 
> ROW                   COLUMN+CELL                                               
>  row01                column=family:col01, timestamp=1477482834060, value=id1fac
>                       6fc8_date512616                                           
> 1 row(s) in 0.0210 seconds
> 
> HBase Shell; enter 'help<RETURN>' for list of supported commands.
> Type "exit<RETURN>" to leave the HBase Shell
> Version 1.1.2.2.5.0.0-1245, r53538b8ab6749cbb6fdc0fe448b89aa82495fb3f, Mon Oct 24 02:41:06 EDT 2016
> 
> hbase(main):001:0> scan 'ambarismoketest'
> ROW                   COLUMN+CELL                                               
>  row01                column=family:col01, timestamp=1477482834060, value=id1fac
>                       6fc8_date512616                                           
> 1 row(s) in 0.2410 seconds
> 
> hbase(main):002:0> Looking for id1fac6fc8_date512616
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/files/hbaseSmokeVerify.sh 5c320c0 
> 
> Diff: https://reviews.apache.org/r/54118/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>