Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar


> On April 20, 2016, 8:16 p.m., Alejandro Fernandez wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh,
> >  line 24
> > 
> >
> > Can you add a comment to what the 3 params are?

Done.


- Swapan


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


On April 20, 2016, 8:55 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 8:55 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 19:30:27,256 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 19:30:27,308 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 19:30:27,336 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 19:30:27,341 - Running Hive Server checks
> 2016-04-20 19:30:27,342 - --
> 
> 2016-04-20 19:30:27,342 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 19:30:27,342 - Waiting for the Hive Server to start...
> 2016-04-20 19:30:27,343 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 19:30:30,016 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on 
> host: c6402.ambari.apache.org and port 1 after 2.6735098362 seconds
> 2016-04-20 19:30:30,016 - Running Hive Server2 checks
> 2016-04-20 19:30:30,016 - --
> 
> 2016-04-20 19:30:30,017 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 19:30:30,017 - Waiting for the Hive Server2 to start...
> 2016-04-20 19:30:30,018 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 19:30:34,219 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 19:30:34,219 - Successfully stayed connected to 'Hive Server2' on 
> host: c6402.ambari.apache.org and port 10500 after 4.2018828392 seconds
> 2016-04-20 19:30:34,219 - Running LLAP checks
> 2016-04-20 19:30:34,219 - ---
> 
> 2016-04-20 19:30:34,221 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:30:34,224 - checked_call['hostid'] {}
> 2016-04-20 19:30:34,235 - checked_call returned (0, 'a8c06640')
> 2016-04-20 19:30:34,236 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh /usr/hdp 
> llap_smoke_ida8c06640_date302016 prepare'] {'logoutput': True, 'try_sleep': 
> 5, 'wait_for_finish': True, 'tries': 1, 'user': 'hive', 'stderr': -1, 'path': 
> ['/usr/sbin', '/usr/local/bin', '/bin', '/usr/bin', 
> '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/h

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar

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

(Updated April 20, 2016, 8:55 p.m.)


Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.


Changes
---

Comments added for parameters.


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


Repository: ambari


Description
---

Service Checks for Hive Server Interactive and LLAP
 - Checks Port for HSI.
 - Issues DB queries to ascertaing liveness of LLAP.


Diffs (updated)
-

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
 PRE-CREATION 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
 2414e8b 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 251e71f 

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


Testing
---

- Tested with HSI installed and not installed.
- new serviece checks added pass.

- Python UT passes.

--
Ran 261 tests in 6.542s

OK
--
Total run:994
Total errors:0
Total failures:0
OK


Service Check o/p:
=


2016-04-20 19:30:27,256 - Using hadoop conf dir: 
/usr/hdp/current/hadoop-client/conf
2016-04-20 19:30:27,308 - call['ambari-python-wrap /usr/bin/hdp-select status 
hive-server2'] {'timeout': 20}
2016-04-20 19:30:27,336 - call returned (0, 'hive-server2 - 2.5.0.0-157')
2016-04-20 19:30:27,341 - Running Hive Server checks
2016-04-20 19:30:27,342 - --

2016-04-20 19:30:27,342 - Server Address List : ['c6402.ambari.apache.org'], 
Port : 1
2016-04-20 19:30:27,342 - Waiting for the Hive Server to start...
2016-04-20 19:30:27,343 - Execute['! beeline -u 
'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 2>&1| 
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': 
['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
'ambari-qa', 'timeout': 30}
2016-04-20 19:30:30,016 - Successfully connected to c6402.ambari.apache.org on 
port 1
2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on 
host: c6402.ambari.apache.org and port 1 after 2.6735098362 seconds
2016-04-20 19:30:30,016 - Running Hive Server2 checks
2016-04-20 19:30:30,016 - --

2016-04-20 19:30:30,017 - Server Address List : ['c6402.ambari.apache.org'], 
Port : 10500
2016-04-20 19:30:30,017 - Waiting for the Hive Server2 to start...
2016-04-20 19:30:30,018 - Execute['! beeline -u 
'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 2>&1| 
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': 
['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
'ambari-qa', 'timeout': 30}
2016-04-20 19:30:34,219 - Successfully connected to c6402.ambari.apache.org on 
port 10500
2016-04-20 19:30:34,219 - Successfully stayed connected to 'Hive Server2' on 
host: c6402.ambari.apache.org and port 10500 after 4.2018828392 seconds
2016-04-20 19:30:34,219 - Running LLAP checks
2016-04-20 19:30:34,219 - ---

2016-04-20 19:30:34,221 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
{'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
2016-04-20 19:30:34,224 - checked_call['hostid'] {}
2016-04-20 19:30:34,235 - checked_call returned (0, 'a8c06640')
2016-04-20 19:30:34,236 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh /usr/hdp 
llap_smoke_ida8c06640_date302016 prepare'] {'logoutput': True, 'try_sleep': 5, 
'wait_for_finish': True, 'tries': 1, 'user': 'hive', 'stderr': -1, 'path': 
['/usr/sbin', '/usr/local/bin', '/bin', '/usr/bin', 
'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin']}
which: no hbase in 
(/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin)
WARNING: Use "yarn jar" to launch YARN applications.
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector 
with the Serial old collector is depr

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Alejandro Fernandez

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


Ship it!





ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
 (line 24)


Can you add a comment to what the 3 params are?


- Alejandro Fernandez


On April 20, 2016, 7:37 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 7:37 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 19:30:27,256 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 19:30:27,308 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 19:30:27,336 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 19:30:27,341 - Running Hive Server checks
> 2016-04-20 19:30:27,342 - --
> 
> 2016-04-20 19:30:27,342 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 19:30:27,342 - Waiting for the Hive Server to start...
> 2016-04-20 19:30:27,343 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 19:30:30,016 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on 
> host: c6402.ambari.apache.org and port 1 after 2.6735098362 seconds
> 2016-04-20 19:30:30,016 - Running Hive Server2 checks
> 2016-04-20 19:30:30,016 - --
> 
> 2016-04-20 19:30:30,017 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 19:30:30,017 - Waiting for the Hive Server2 to start...
> 2016-04-20 19:30:30,018 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 19:30:34,219 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 19:30:34,219 - Successfully stayed connected to 'Hive Server2' on 
> host: c6402.ambari.apache.org and port 10500 after 4.2018828392 seconds
> 2016-04-20 19:30:34,219 - Running LLAP checks
> 2016-04-20 19:30:34,219 - ---
> 
> 2016-04-20 19:30:34,221 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:30:34,224 - checked_call['hostid'] {}
> 2016-04-20 19:30:34,235 - checked_call returned (0, 'a8c06640')
> 2016-04-20 19:30:34,236 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh /usr/hdp 
> llap_smoke_ida8c06640_date302016 prepare'] {'logoutput': True, 'try_sleep': 
> 5, 'wait_for_finish': True, 'tries': 1, 'user': 'hive', 'stderr': -1, 'path': 
> ['/usr/sbin', '/usr/local/bin', '/bin', '/usr/bin', 
> '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin']}
> which: no hbase in 
> (/usr

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Sumit Mohanty

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


Ship it!




Ship It!

- Sumit Mohanty


On April 20, 2016, 7:37 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 7:37 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 19:30:27,256 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 19:30:27,308 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 19:30:27,336 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 19:30:27,341 - Running Hive Server checks
> 2016-04-20 19:30:27,342 - --
> 
> 2016-04-20 19:30:27,342 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 19:30:27,342 - Waiting for the Hive Server to start...
> 2016-04-20 19:30:27,343 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 19:30:30,016 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on 
> host: c6402.ambari.apache.org and port 1 after 2.6735098362 seconds
> 2016-04-20 19:30:30,016 - Running Hive Server2 checks
> 2016-04-20 19:30:30,016 - --
> 
> 2016-04-20 19:30:30,017 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 19:30:30,017 - Waiting for the Hive Server2 to start...
> 2016-04-20 19:30:30,018 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 19:30:34,219 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 19:30:34,219 - Successfully stayed connected to 'Hive Server2' on 
> host: c6402.ambari.apache.org and port 10500 after 4.2018828392 seconds
> 2016-04-20 19:30:34,219 - Running LLAP checks
> 2016-04-20 19:30:34,219 - ---
> 
> 2016-04-20 19:30:34,221 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:30:34,224 - checked_call['hostid'] {}
> 2016-04-20 19:30:34,235 - checked_call returned (0, 'a8c06640')
> 2016-04-20 19:30:34,236 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh /usr/hdp 
> llap_smoke_ida8c06640_date302016 prepare'] {'logoutput': True, 'try_sleep': 
> 5, 'wait_for_finish': True, 'tries': 1, 'user': 'hive', 'stderr': -1, 'path': 
> ['/usr/sbin', '/usr/local/bin', '/bin', '/usr/bin', 
> '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin']}
> which: no hbase in 
> (/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-ag

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar

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

(Updated April 20, 2016, 7:37 p.m.)


Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.


Changes
---

Review suggestions incorporated.
Python UT passes.


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


Repository: ambari


Description
---

Service Checks for Hive Server Interactive and LLAP
 - Checks Port for HSI.
 - Issues DB queries to ascertaing liveness of LLAP.


Diffs (updated)
-

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
 PRE-CREATION 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
 2414e8b 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 251e71f 

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


Testing (updated)
---

- Tested with HSI installed and not installed.
- new serviece checks added pass.

- Python UT passes.

--
Ran 261 tests in 6.542s

OK
--
Total run:994
Total errors:0
Total failures:0
OK


Service Check o/p:
=


2016-04-20 19:30:27,256 - Using hadoop conf dir: 
/usr/hdp/current/hadoop-client/conf
2016-04-20 19:30:27,308 - call['ambari-python-wrap /usr/bin/hdp-select status 
hive-server2'] {'timeout': 20}
2016-04-20 19:30:27,336 - call returned (0, 'hive-server2 - 2.5.0.0-157')
2016-04-20 19:30:27,341 - Running Hive Server checks
2016-04-20 19:30:27,342 - --

2016-04-20 19:30:27,342 - Server Address List : ['c6402.ambari.apache.org'], 
Port : 1
2016-04-20 19:30:27,342 - Waiting for the Hive Server to start...
2016-04-20 19:30:27,343 - Execute['! beeline -u 
'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 2>&1| 
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': 
['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
'ambari-qa', 'timeout': 30}
2016-04-20 19:30:30,016 - Successfully connected to c6402.ambari.apache.org on 
port 1
2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on 
host: c6402.ambari.apache.org and port 1 after 2.6735098362 seconds
2016-04-20 19:30:30,016 - Running Hive Server2 checks
2016-04-20 19:30:30,016 - --

2016-04-20 19:30:30,017 - Server Address List : ['c6402.ambari.apache.org'], 
Port : 10500
2016-04-20 19:30:30,017 - Waiting for the Hive Server2 to start...
2016-04-20 19:30:30,018 - Execute['! beeline -u 
'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 2>&1| 
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': 
['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
'ambari-qa', 'timeout': 30}
2016-04-20 19:30:34,219 - Successfully connected to c6402.ambari.apache.org on 
port 10500
2016-04-20 19:30:34,219 - Successfully stayed connected to 'Hive Server2' on 
host: c6402.ambari.apache.org and port 10500 after 4.2018828392 seconds
2016-04-20 19:30:34,219 - Running LLAP checks
2016-04-20 19:30:34,219 - ---

2016-04-20 19:30:34,221 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
{'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
2016-04-20 19:30:34,224 - checked_call['hostid'] {}
2016-04-20 19:30:34,235 - checked_call returned (0, 'a8c06640')
2016-04-20 19:30:34,236 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh /usr/hdp 
llap_smoke_ida8c06640_date302016 prepare'] {'logoutput': True, 'try_sleep': 5, 
'wait_for_finish': True, 'tries': 1, 'user': 'hive', 'stderr': -1, 'path': 
['/usr/sbin', '/usr/local/bin', '/bin', '/usr/bin', 
'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin']}
which: no hbase in 
(/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin)
WARNING: Use "yarn jar" to launch YARN applications.
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector 
with th

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar


> On April 20, 2016, 6:19 p.m., Sumit Mohanty wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py,
> >  line 175
> > 
> >
> > Any reason we are running it twice?
> 
> Swapan Shridhar wrote:
> Nothing specific. A second chance. Typically, seen same way in HCAT and 
> Webhcat. Suggesting to do it only once ?
> 
> Sumit Mohanty wrote:
> Lets just call it once. User can run ServiceCheck again.

Done.


- Swapan


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


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:16,692 - checked_call['hostid'] {}
> 2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:16,697 - checked_call['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh llap_smoke_ida8c06640_date222016 
> prepare'] {'logoutput': True, 'try_sleep': 5, 'wait_for_finish': True, 
> 'tries': 2, 'user': 'hive', 'stderr'

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar


> On April 20, 2016, 6:21 p.m., Alejandro Fernandez wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh,
> >  line 27
> > 
> >
> > We can't hardcode /usr/hdp, we have to take the path as a parameter
> > 
> > You can also do this in python by calling a process.

Passing as param.


- Swapan


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


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:16,692 - checked_call['hostid'] {}
> 2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:16,697 - checked_call['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh llap_smoke_ida8c06640_date222016 
> prepare'] {'logoutput': True, 'try_sleep': 5, 'wait_for_finish': True, 
> 'tries': 2, 'user': 'hive', 'stderr': -1, 'path': ['/usr/sbin', 
> '/usr/local/bin', '/bin', '/usr/bin', 
> '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Sumit Mohanty


> On April 20, 2016, 6:19 p.m., Sumit Mohanty wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py,
> >  line 175
> > 
> >
> > Any reason we are running it twice?
> 
> Swapan Shridhar wrote:
> Nothing specific. A second chance. Typically, seen same way in HCAT and 
> Webhcat. Suggesting to do it only once ?

Lets just call it once. User can run ServiceCheck again.


- Sumit


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


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:16,692 - checked_call['hostid'] {}
> 2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:16,697 - checked_call['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh llap_smoke_ida8c06640_date222016 
> prepare'] {'logoutput': True, 'try_sleep': 5, 'wait_for_finish': True, 
> 'tries': 2, 'user': 'hive', 'stderr': -1, 'path': ['/usr/sbin', 
> '/usr/lo

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar


> On April 20, 2016, 6:19 p.m., Sumit Mohanty wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py,
> >  line 78
> > 
> >
> > We generally do not add additional new lines as these go into logs 
> > anyway.

Removed.


> On April 20, 2016, 6:19 p.m., Sumit Mohanty wrote:
> > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py,
> >  line 175
> > 
> >
> > Any reason we are running it twice?

Nothing specific. A second chance. Typically, seen same way in HCAT and 
Webhcat. Suggesting to do it only once ?


- Swapan


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


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:16,692 - checked_call['hostid'] {}
> 2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:16,697 - checked_call['env JAV

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Alejandro Fernandez

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




ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
 (line 27)


We can't hardcode /usr/hdp, we have to take the path as a parameter

You can also do this in python by calling a process.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
 (line 509)


May want to ensure this is a boolean.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 (line 140)


Let's not combine + and % in the same print.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 (line 155)


Pass in the stack_root as a param.


- Alejandro Fernandez


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
>

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Sumit Mohanty

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




ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 (line 71)


We generally do not add additional new lines as these go into logs anyway.



ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 (line 165)


Any reason we are running it twice?


- Sumit Mohanty


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:16,692 - checked_call['hostid'] {}
> 2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:16,697 - checked_call['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh llap_smoke_ida8c06640_date222016 
> prepare'] {'logoutput': True, 'try_sleep': 5, 'wait_for_finish': True, 
> 'tries': 2, 'user': 'hive', 'stderr': -1, 'path': ['/usr/sbin', 
> '/usr/local/bin', '/bin', '/usr/bin', 
> '/usr/sbin:/sbin:/

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar

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




ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 (line 163)


Doesn't suceed as smoke user.


- Swapan Shridhar


On April 20, 2016, 6:15 p.m., Swapan Shridhar wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46427/
> ---
> 
> (Updated April 20, 2016, 6:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-15985
> https://issues.apache.org/jira/browse/AMBARI-15985
> 
> 
> Repository: ambari
> 
> 
> Description
> ---
> 
> Service Checks for Hive Server Interactive and LLAP
>  - Checks Port for HSI.
>  - Issues DB queries to ascertaing liveness of LLAP.
> 
> 
> Diffs
> -
> 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
>  PRE-CREATION 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
>  2414e8b 
>   
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
>  251e71f 
> 
> Diff: https://reviews.apache.org/r/46427/diff/
> 
> 
> Testing
> ---
> 
> - Tested with HSI installed and not installed.
> - new serviece checks added pass.
> 
> - Python UT passes.
> 
> --
> Ran 261 tests in 6.542s
> 
> OK
> --
> Total run:994
> Total errors:0
> Total failures:0
> OK
> 
> 
> Service Check o/p:
> =
> 
> 
> 2016-04-20 07:22:11,987 - Using hadoop conf dir: 
> /usr/hdp/current/hadoop-client/conf
> 2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
> hive-server2'] {'timeout': 20}
> 2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
> 2016-04-20 07:22:12,064 - 
> 
> 
> 2016-04-20 07:22:12,064 - Running Hive Server checks
> 2016-04-20 07:22:12,065 - --
> 
> 2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 1
> 2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
> 2016-04-20 07:22:12,067 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org 
> on port 1
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
> c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
> 2016-04-20 07:22:14,253 - 
> 
> 
> 2016-04-20 07:22:14,253 - Running Hive Server2 checks
> 2016-04-20 07:22:14,253 - --
> 
> 2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
> Port : 10500
> 2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
> 2016-04-20 07:22:14,256 - Execute['! beeline -u 
> 'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 
> 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] 
> {'path': ['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
> 'ambari-qa', 'timeout': 30}
> 2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org 
> on port 10500
> 2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
> c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
> 2016-04-20 07:22:16,689 - 
> 
> 
> 2016-04-20 07:22:16,689 - Running LLAP checks
> 2016-04-20 07:22:16,689 - ---
> 
> 2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
> {'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:16,692 - checked_call['hostid'] {}
> 2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:16,697 - checked_call['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
> /var/lib/ambari-agent/tmp/hiveLlapSmoke.sh llap_smoke_ida8c06640_date222016 
> prepare'] {'logoutput': True, 'try_sleep': 5, 'wait_for_finish': True, 
> 'tries': 2, 'user': 'hive', 'stderr': -1, 'path': ['/usr/sbin', 
> '/usr/local/bin', '/bin', '/usr/bin', 
> '/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin'

Re: Review Request 46427: AMBARI-15985. Service Checks for Hive Server Interactive and LLAP.

2016-04-20 Thread Swapan Shridhar

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

(Updated April 20, 2016, 6:15 p.m.)


Review request for Ambari, Alejandro Fernandez and Sumit Mohanty.


Changes
---

Refactored.


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


Repository: ambari


Description
---

Service Checks for Hive Server Interactive and LLAP
 - Checks Port for HSI.
 - Issues DB queries to ascertaing liveness of LLAP.


Diffs (updated)
-

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/files/hiveLlapSmoke.sh
 PRE-CREATION 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
 2414e8b 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py
 251e71f 

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


Testing
---

- Tested with HSI installed and not installed.
- new serviece checks added pass.

- Python UT passes.

--
Ran 261 tests in 6.542s

OK
--
Total run:994
Total errors:0
Total failures:0
OK


Service Check o/p:
=


2016-04-20 07:22:11,987 - Using hadoop conf dir: 
/usr/hdp/current/hadoop-client/conf
2016-04-20 07:22:12,035 - call['ambari-python-wrap /usr/bin/hdp-select status 
hive-server2'] {'timeout': 20}
2016-04-20 07:22:12,059 - call returned (0, 'hive-server2 - 2.5.0.0-157')
2016-04-20 07:22:12,064 - 


2016-04-20 07:22:12,064 - Running Hive Server checks
2016-04-20 07:22:12,065 - --

2016-04-20 07:22:12,066 - Server Address List : ['c6402.ambari.apache.org'], 
Port : 1
2016-04-20 07:22:12,067 - Waiting for the Hive Server to start...
2016-04-20 07:22:12,067 - Execute['! beeline -u 
'jdbc:hive2://c6402.ambari.apache.org:1/;transportMode=binary' -e '' 2>&1| 
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': 
['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
'ambari-qa', 'timeout': 30}
2016-04-20 07:22:14,253 - Successfully connected to c6402.ambari.apache.org on 
port 1
2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at 
c6402.ambari.apache.org on port 1 after 2.18644499779 seconds
2016-04-20 07:22:14,253 - 


2016-04-20 07:22:14,253 - Running Hive Server2 checks
2016-04-20 07:22:14,253 - --

2016-04-20 07:22:14,255 - Server Address List : ['c6402.ambari.apache.org'], 
Port : 10500
2016-04-20 07:22:14,255 - Waiting for the Hive Server2 to start...
2016-04-20 07:22:14,256 - Execute['! beeline -u 
'jdbc:hive2://c6402.ambari.apache.org:10500/;transportMode=binary' -e '' 2>&1| 
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL''] {'path': 
['/bin/', '/usr/bin/', '/usr/lib/hive/bin/', '/usr/sbin/'], 'user': 
'ambari-qa', 'timeout': 30}
2016-04-20 07:22:16,689 - Successfully connected to c6402.ambari.apache.org on 
port 10500
2016-04-20 07:22:16,689 - Successfully stayed connected to Hive Server2 at 
c6402.ambari.apache.org on port 10500 after 2.43372511864 seconds
2016-04-20 07:22:16,689 - 


2016-04-20 07:22:16,689 - Running LLAP checks
2016-04-20 07:22:16,689 - ---

2016-04-20 07:22:16,690 - File['/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh'] 
{'content': StaticFile('hiveLlapSmoke.sh'), 'mode': 0755}
2016-04-20 07:22:16,692 - checked_call['hostid'] {}
2016-04-20 07:22:16,696 - checked_call returned (0, 'a8c06640')
2016-04-20 07:22:16,697 - checked_call['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 
/var/lib/ambari-agent/tmp/hiveLlapSmoke.sh llap_smoke_ida8c06640_date222016 
prepare'] {'logoutput': True, 'try_sleep': 5, 'wait_for_finish': True, 'tries': 
2, 'user': 'hive', 'stderr': -1, 'path': ['/usr/sbin', '/usr/local/bin', 
'/bin', '/usr/bin', 
'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin']}
which: no hbase in 
(/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/var/lib/ambari-agent:/var/lib/ambari-agent:/usr/hdp/current/hive-client/bin:/usr/hdp/current/hadoop-client/bin)
WARNING: Use "yarn jar" to launch YARN applications.
Java HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector 
with the Serial old collector is deprecated and will li