You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Swapan Shridhar <ss...@hortonworks.com> on 2016/04/20 09:26:02 UTC

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

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

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 : 10000
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:10000/;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 10000
2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
OK
Time taken: 19.924 seconds
Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
Total jobs = 1
Launching Job 1 out of 1


Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)

Map 1: -/-	Reducer 2: 0/2	
Map 1: 0/1	Reducer 2: 0/2	
Map 1: 0(+1)/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0(+1)/2	
Map 1: 1/1	Reducer 2: 1(+1)/2	
Map 1: 1/1	Reducer 2: 2/2	
Status: DAG finished successfully in 2.39 seconds


Query Execution Summary
----------------------------------------------------------------------------------------------
OPERATION                            DURATION
----------------------------------------------------------------------------------------------
Compile Query                           3.79s
Prepare Plan                            0.83s
Submit Plan                             1.55s
Start                                   1.95s
Finish                                  2.39s
----------------------------------------------------------------------------------------------

Task Execution Summary
----------------------------------------------------------------------------------------------
  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
----------------------------------------------------------------------------------------------
     Map 1         266.00             0            0              2               2
 Reducer 2        1027.00             0            0              2               0
----------------------------------------------------------------------------------------------

LLAP IO Summary
----------------------------------------------------------------------------------------------
  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
----------------------------------------------------------------------------------------------
     Map 1         0         0          0        0B         0B          0B       0B     0.00s
----------------------------------------------------------------------------------------------


Loading data to table default.llap_smoke_ida8c06640_date222016
Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
OK
Time taken: 11.164 seconds
OK
2
Time taken: 1.016 seconds, Fetched: 1 row(s)
2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: 
 Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-------------------------
 ---------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer 2
         1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
2016-04-20 07:22:58,632 - 


2016-04-20 07:22:58,632 - Running HCAT checks
2016-04-20 07:22:58,632 - -------------------

2016-04-20 07:22:58,633 - checked_call['hostid'] {}
2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
t2
t3
Time taken: 2.882 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 1.913 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.447 seconds
2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.41 seconds
2016-04-20 07:23:33,199 - 


2016-04-20 07:23:33,200 - Running WEBHCAT checks
2016-04-20 07:23:33,200 - ---------------------

2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,248 - call returned (0, '')
2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,391 - call returned (0, '')
2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,444 - call returned (0, '')
2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,470 - call returned (0, '')
2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,571 - call returned (0, '')
2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,600 - call returned (0, '')
2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}


Thanks,

Swapan Shridhar


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.
-----------------------------------------------------------
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 : 10000
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:10000/;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 10000
2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on host: c6402.ambari.apache.org and port 10000 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 deprecated and will likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
OK
Time taken: 21.683 seconds
Query ID = hive_20160420193104_47af1752-fbeb-4d7e-afd3-f680c12a0f5d
Total jobs = 1
Launching Job 1 out of 1


Status: Running (Executing on YARN cluster with App id application_1461173999701_0012)

Map 1: -/-	Reducer 2: 0/2	
Map 1: 0/1	Reducer 2: 0/2	
Map 1: 0(+1)/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0(+1)/2	
Map 1: 1/1	Reducer 2: 1(+1)/2	
Map 1: 1/1	Reducer 2: 2/2	
Status: DAG finished successfully in 4.81 seconds


Query Execution Summary
----------------------------------------------------------------------------------------------
OPERATION                            DURATION
----------------------------------------------------------------------------------------------
Compile Query                           3.50s
Prepare Plan                            0.99s
Submit Plan                             1.67s
Start                                   0.76s
Finish                                  4.81s
----------------------------------------------------------------------------------------------

Task Execution Summary
----------------------------------------------------------------------------------------------
  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
----------------------------------------------------------------------------------------------
     Map 1        1082.00             0            0              2               2
 Reducer 2        2403.00             0            0              2               0
----------------------------------------------------------------------------------------------

LLAP IO Summary
----------------------------------------------------------------------------------------------
  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
----------------------------------------------------------------------------------------------
     Map 1         0         0          0        0B         0B          0B       0B     0.00s
----------------------------------------------------------------------------------------------


Loading data to table default.llap_smoke_ida8c06640_date302016
Table default.llap_smoke_ida8c06640_date302016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
OK
Time taken: 13.035 seconds
OK
2
Time taken: 2.177 seconds, Fetched: 1 row(s)
2016-04-20 19:31:21,178 - Running HCAT checks
2016-04-20 19:31:21,178 - -------------------

2016-04-20 19:31:21,179 - checked_call['hostid'] {}
2016-04-20 19:31:21,208 - checked_call returned (0, 'a8c06640')
2016-04-20 19:31:21,209 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
2016-04-20 19:31:21,224 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
t2
t3
Time taken: 5.182 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.044 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.817 seconds
2016-04-20 19:31:58,584 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
2016-04-20 19:31:58,590 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
2016-04-20 19:32:01,625 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.468 seconds
2016-04-20 19:32:08,730 - Running WEBHCAT checks
2016-04-20 19:32:08,730 - ---------------------

2016-04-20 19:32:08,731 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
2016-04-20 19:32:08,738 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
2016-04-20 19:32:08,739 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] because it doesn't exist
2016-04-20 19:32:08,743 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig from 0 to hdfs
2016-04-20 19:32:08,744 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 19:32:08,751 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpMdR_jN 2>/tmp/tmpJLxau4''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:08,795 - call returned (0, '')
2016-04-20 19:32:08,796 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.pig in DFS
2016-04-20 19:32:08,797 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpgRJGcJ 2>/tmp/tmpavM5TI''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:08,960 - call returned (0, '')
2016-04-20 19:32:08,968 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpgRGtrp 2>/tmp/tmpD5KTED''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,041 - call returned (0, '')
2016-04-20 19:32:09,042 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 19:32:09,043 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpT7ncU1 2>/tmp/tmpBy8iMr''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,104 - call returned (0, '')
2016-04-20 19:32:09,105 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.in in DFS
2016-04-20 19:32:09,106 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpnxRUA_ 2>/tmp/tmpNBhXEx''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,244 - call returned (0, '')
2016-04-20 19:32:09,246 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpn_Z7pG 2>/tmp/tmpL668wn''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,273 - call returned (0, '')
2016-04-20 19:32:09,273 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 19:32:09,275 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461180728.73.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}


Thanks,

Swapan Shridhar


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.

> 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
> > <https://reviews.apache.org/r/46427/diff/3/?file=1353611#file1353611line24>
> >
> >     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 : 10000
> 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:10000/;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 10000
> 2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on host: c6402.ambari.apache.org and port 10000 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 deprecated and will likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 21.683 seconds
> Query ID = hive_20160420193104_47af1752-fbeb-4d7e-afd3-f680c12a0f5d
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461173999701_0012)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 4.81 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.50s
> Prepare Plan                            0.99s
> Submit Plan                             1.67s
> Start                                   0.76s
> Finish                                  4.81s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1        1082.00             0            0              2               2
>  Reducer 2        2403.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date302016
> Table default.llap_smoke_ida8c06640_date302016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 13.035 seconds
> OK
> 2
> Time taken: 2.177 seconds, Fetched: 1 row(s)
> 2016-04-20 19:31:21,178 - Running HCAT checks
> 2016-04-20 19:31:21,178 - -------------------
> 
> 2016-04-20 19:31:21,179 - checked_call['hostid'] {}
> 2016-04-20 19:31:21,208 - checked_call returned (0, 'a8c06640')
> 2016-04-20 19:31:21,209 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:31:21,224 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 5.182 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.044 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.817 seconds
> 2016-04-20 19:31:58,584 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 19:31:58,590 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 19:32:01,625 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.468 seconds
> 2016-04-20 19:32:08,730 - Running WEBHCAT checks
> 2016-04-20 19:32:08,730 - ---------------------
> 
> 2016-04-20 19:32:08,731 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:32:08,738 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 19:32:08,739 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] because it doesn't exist
> 2016-04-20 19:32:08,743 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig from 0 to hdfs
> 2016-04-20 19:32:08,744 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:08,751 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpMdR_jN 2>/tmp/tmpJLxau4''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:08,795 - call returned (0, '')
> 2016-04-20 19:32:08,796 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.pig in DFS
> 2016-04-20 19:32:08,797 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpgRJGcJ 2>/tmp/tmpavM5TI''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:08,960 - call returned (0, '')
> 2016-04-20 19:32:08,968 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpgRGtrp 2>/tmp/tmpD5KTED''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,041 - call returned (0, '')
> 2016-04-20 19:32:09,042 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:09,043 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpT7ncU1 2>/tmp/tmpBy8iMr''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,104 - call returned (0, '')
> 2016-04-20 19:32:09,105 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.in in DFS
> 2016-04-20 19:32:09,106 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpnxRUA_ 2>/tmp/tmpNBhXEx''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,244 - call returned (0, '')
> 2016-04-20 19:32:09,246 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpn_Z7pG 2>/tmp/tmpL668wn''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,273 - call returned (0, '')
> 2016-04-20 19:32:09,273 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:09,275 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461180728.73.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
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)
<https://reviews.apache.org/r/46427/#comment193344>

    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 : 10000
> 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:10000/;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 10000
> 2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on host: c6402.ambari.apache.org and port 10000 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 deprecated and will likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 21.683 seconds
> Query ID = hive_20160420193104_47af1752-fbeb-4d7e-afd3-f680c12a0f5d
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461173999701_0012)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 4.81 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.50s
> Prepare Plan                            0.99s
> Submit Plan                             1.67s
> Start                                   0.76s
> Finish                                  4.81s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1        1082.00             0            0              2               2
>  Reducer 2        2403.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date302016
> Table default.llap_smoke_ida8c06640_date302016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 13.035 seconds
> OK
> 2
> Time taken: 2.177 seconds, Fetched: 1 row(s)
> 2016-04-20 19:31:21,178 - Running HCAT checks
> 2016-04-20 19:31:21,178 - -------------------
> 
> 2016-04-20 19:31:21,179 - checked_call['hostid'] {}
> 2016-04-20 19:31:21,208 - checked_call returned (0, 'a8c06640')
> 2016-04-20 19:31:21,209 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:31:21,224 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 5.182 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.044 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.817 seconds
> 2016-04-20 19:31:58,584 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 19:31:58,590 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 19:32:01,625 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.468 seconds
> 2016-04-20 19:32:08,730 - Running WEBHCAT checks
> 2016-04-20 19:32:08,730 - ---------------------
> 
> 2016-04-20 19:32:08,731 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:32:08,738 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 19:32:08,739 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] because it doesn't exist
> 2016-04-20 19:32:08,743 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig from 0 to hdfs
> 2016-04-20 19:32:08,744 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:08,751 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpMdR_jN 2>/tmp/tmpJLxau4''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:08,795 - call returned (0, '')
> 2016-04-20 19:32:08,796 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.pig in DFS
> 2016-04-20 19:32:08,797 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpgRJGcJ 2>/tmp/tmpavM5TI''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:08,960 - call returned (0, '')
> 2016-04-20 19:32:08,968 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpgRGtrp 2>/tmp/tmpD5KTED''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,041 - call returned (0, '')
> 2016-04-20 19:32:09,042 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:09,043 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpT7ncU1 2>/tmp/tmpBy8iMr''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,104 - call returned (0, '')
> 2016-04-20 19:32:09,105 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.in in DFS
> 2016-04-20 19:32:09,106 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpnxRUA_ 2>/tmp/tmpNBhXEx''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,244 - call returned (0, '')
> 2016-04-20 19:32:09,246 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpn_Z7pG 2>/tmp/tmpL668wn''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,273 - call returned (0, '')
> 2016-04-20 19:32:09,273 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:09,275 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461180728.73.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Sumit Mohanty <sm...@hortonworks.com>.
-----------------------------------------------------------
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 : 10000
> 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:10000/;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 10000
> 2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on host: c6402.ambari.apache.org and port 10000 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 deprecated and will likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 21.683 seconds
> Query ID = hive_20160420193104_47af1752-fbeb-4d7e-afd3-f680c12a0f5d
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461173999701_0012)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 4.81 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.50s
> Prepare Plan                            0.99s
> Submit Plan                             1.67s
> Start                                   0.76s
> Finish                                  4.81s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1        1082.00             0            0              2               2
>  Reducer 2        2403.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date302016
> Table default.llap_smoke_ida8c06640_date302016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 13.035 seconds
> OK
> 2
> Time taken: 2.177 seconds, Fetched: 1 row(s)
> 2016-04-20 19:31:21,178 - Running HCAT checks
> 2016-04-20 19:31:21,178 - -------------------
> 
> 2016-04-20 19:31:21,179 - checked_call['hostid'] {}
> 2016-04-20 19:31:21,208 - checked_call returned (0, 'a8c06640')
> 2016-04-20 19:31:21,209 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:31:21,224 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 5.182 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.044 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.817 seconds
> 2016-04-20 19:31:58,584 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 19:31:58,590 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 19:32:01,625 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.468 seconds
> 2016-04-20 19:32:08,730 - Running WEBHCAT checks
> 2016-04-20 19:32:08,730 - ---------------------
> 
> 2016-04-20 19:32:08,731 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 19:32:08,738 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 19:32:08,739 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] because it doesn't exist
> 2016-04-20 19:32:08,743 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig from 0 to hdfs
> 2016-04-20 19:32:08,744 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:08,751 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpMdR_jN 2>/tmp/tmpJLxau4''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:08,795 - call returned (0, '')
> 2016-04-20 19:32:08,796 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.pig in DFS
> 2016-04-20 19:32:08,797 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpgRJGcJ 2>/tmp/tmpavM5TI''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:08,960 - call returned (0, '')
> 2016-04-20 19:32:08,968 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpgRGtrp 2>/tmp/tmpD5KTED''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,041 - call returned (0, '')
> 2016-04-20 19:32:09,042 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:09,043 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpT7ncU1 2>/tmp/tmpBy8iMr''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,104 - call returned (0, '')
> 2016-04-20 19:32:09,105 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.in in DFS
> 2016-04-20 19:32:09,106 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpnxRUA_ 2>/tmp/tmpNBhXEx''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,244 - call returned (0, '')
> 2016-04-20 19:32:09,246 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpn_Z7pG 2>/tmp/tmpL668wn''] {'logoutput': None, 'quiet': False}
> 2016-04-20 19:32:09,273 - call returned (0, '')
> 2016-04-20 19:32:09,273 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 19:32:09,275 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461180728.73.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.
-----------------------------------------------------------
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 : 10000
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:10000/;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 10000
2016-04-20 19:30:30,016 - Successfully stayed connected to 'Hive Server' on host: c6402.ambari.apache.org and port 10000 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 deprecated and will likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
OK
Time taken: 21.683 seconds
Query ID = hive_20160420193104_47af1752-fbeb-4d7e-afd3-f680c12a0f5d
Total jobs = 1
Launching Job 1 out of 1


Status: Running (Executing on YARN cluster with App id application_1461173999701_0012)

Map 1: -/-	Reducer 2: 0/2	
Map 1: 0/1	Reducer 2: 0/2	
Map 1: 0(+1)/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0(+1)/2	
Map 1: 1/1	Reducer 2: 1(+1)/2	
Map 1: 1/1	Reducer 2: 2/2	
Status: DAG finished successfully in 4.81 seconds


Query Execution Summary
----------------------------------------------------------------------------------------------
OPERATION                            DURATION
----------------------------------------------------------------------------------------------
Compile Query                           3.50s
Prepare Plan                            0.99s
Submit Plan                             1.67s
Start                                   0.76s
Finish                                  4.81s
----------------------------------------------------------------------------------------------

Task Execution Summary
----------------------------------------------------------------------------------------------
  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
----------------------------------------------------------------------------------------------
     Map 1        1082.00             0            0              2               2
 Reducer 2        2403.00             0            0              2               0
----------------------------------------------------------------------------------------------

LLAP IO Summary
----------------------------------------------------------------------------------------------
  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
----------------------------------------------------------------------------------------------
     Map 1         0         0          0        0B         0B          0B       0B     0.00s
----------------------------------------------------------------------------------------------


Loading data to table default.llap_smoke_ida8c06640_date302016
Table default.llap_smoke_ida8c06640_date302016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
OK
Time taken: 13.035 seconds
OK
2
Time taken: 2.177 seconds, Fetched: 1 row(s)
2016-04-20 19:31:21,178 - Running HCAT checks
2016-04-20 19:31:21,178 - -------------------

2016-04-20 19:31:21,179 - checked_call['hostid'] {}
2016-04-20 19:31:21,208 - checked_call returned (0, 'a8c06640')
2016-04-20 19:31:21,209 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
2016-04-20 19:31:21,224 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
t2
t3
Time taken: 5.182 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.044 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.817 seconds
2016-04-20 19:31:58,584 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
2016-04-20 19:31:58,590 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date312016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
2016-04-20 19:32:01,625 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date312016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.468 seconds
2016-04-20 19:32:08,730 - Running WEBHCAT checks
2016-04-20 19:32:08,730 - ---------------------

2016-04-20 19:32:08,731 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
2016-04-20 19:32:08,738 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
2016-04-20 19:32:08,739 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig'] because it doesn't exist
2016-04-20 19:32:08,743 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig from 0 to hdfs
2016-04-20 19:32:08,744 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 19:32:08,751 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpMdR_jN 2>/tmp/tmpJLxau4''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:08,795 - call returned (0, '')
2016-04-20 19:32:08,796 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.pig in DFS
2016-04-20 19:32:08,797 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461180728.73.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpgRJGcJ 2>/tmp/tmpavM5TI''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:08,960 - call returned (0, '')
2016-04-20 19:32:08,968 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpgRGtrp 2>/tmp/tmpD5KTED''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,041 - call returned (0, '')
2016-04-20 19:32:09,042 - HdfsResource['/tmp/idtest.ambari-qa.1461180728.73.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 19:32:09,043 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpT7ncU1 2>/tmp/tmpBy8iMr''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,104 - call returned (0, '')
2016-04-20 19:32:09,105 - Creating new file /tmp/idtest.ambari-qa.1461180728.73.in in DFS
2016-04-20 19:32:09,106 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpnxRUA_ 2>/tmp/tmpNBhXEx''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,244 - call returned (0, '')
2016-04-20 19:32:09,246 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461180728.73.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpn_Z7pG 2>/tmp/tmpL668wn''] {'logoutput': None, 'quiet': False}
2016-04-20 19:32:09,273 - call returned (0, '')
2016-04-20 19:32:09,273 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 19:32:09,275 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461180728.73.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}


Thanks,

Swapan Shridhar


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.

> 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
> > <https://reviews.apache.org/r/46427/diff/2/?file=1353499#file1353499line78>
> >
> >     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
> > <https://reviews.apache.org/r/46427/diff/2/?file=1353499#file1353499line175>
> >
> >     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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Sumit Mohanty <sm...@hortonworks.com>.

> 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
> > <https://reviews.apache.org/r/46427/diff/2/?file=1353499#file1353499line175>
> >
> >     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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.

> 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
> > <https://reviews.apache.org/r/46427/diff/2/?file=1353499#file1353499line175>
> >
> >     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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Sumit Mohanty <sm...@hortonworks.com>.
-----------------------------------------------------------
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)
<https://reviews.apache.org/r/46427/#comment193298>

    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)
<https://reviews.apache.org/r/46427/#comment193301>

    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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.
-----------------------------------------------------------
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)
<https://reviews.apache.org/r/46427/#comment193299>

    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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.

> 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
> > <https://reviews.apache.org/r/46427/diff/2/?file=1353497#file1353497line27>
> >
> >     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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
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)
<https://reviews.apache.org/r/46427/#comment193300>

    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)
<https://reviews.apache.org/r/46427/#comment193304>

    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)
<https://reviews.apache.org/r/46427/#comment193302>

    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)
<https://reviews.apache.org/r/46427/#comment193305>

    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 : 10000
> 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:10000/;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 10000
> 2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
> 
> Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
> OK
> Time taken: 19.924 seconds
> Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
> Total jobs = 1
> Launching Job 1 out of 1
> 
> 
> Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)
> 
> Map 1: -/-	Reducer 2: 0/2	
> Map 1: 0/1	Reducer 2: 0/2	
> Map 1: 0(+1)/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0/2	
> Map 1: 1/1	Reducer 2: 0(+1)/2	
> Map 1: 1/1	Reducer 2: 1(+1)/2	
> Map 1: 1/1	Reducer 2: 2/2	
> Status: DAG finished successfully in 2.39 seconds
> 
> 
> Query Execution Summary
> ----------------------------------------------------------------------------------------------
> OPERATION                            DURATION
> ----------------------------------------------------------------------------------------------
> Compile Query                           3.79s
> Prepare Plan                            0.83s
> Submit Plan                             1.55s
> Start                                   1.95s
> Finish                                  2.39s
> ----------------------------------------------------------------------------------------------
> 
> Task Execution Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
> ----------------------------------------------------------------------------------------------
>      Map 1         266.00             0            0              2               2
>  Reducer 2        1027.00             0            0              2               0
> ----------------------------------------------------------------------------------------------
> 
> LLAP IO Summary
> ----------------------------------------------------------------------------------------------
>   VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
> ----------------------------------------------------------------------------------------------
>      Map 1         0         0          0        0B         0B          0B       0B     0.00s
> ----------------------------------------------------------------------------------------------
> 
> 
> Loading data to table default.llap_smoke_ida8c06640_date222016
> Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
> OK
> Time taken: 11.164 seconds
> OK
> 2
> Time taken: 1.016 seconds, Fetched: 1 row(s)
> 2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J
 : Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-----------------------
 -----------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer
  2        1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
> 2016-04-20 07:22:58,632 - 
> 
> 
> 2016-04-20 07:22:58,632 - Running HCAT checks
> 2016-04-20 07:22:58,632 - -------------------
> 
> 2016-04-20 07:22:58,633 - checked_call['hostid'] {}
> 2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
> 2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> t2
> t3
> Time taken: 2.882 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 1.913 seconds
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.447 seconds
> 2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
> 2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
> 2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
> WARNING: Use "yarn jar" to launch YARN applications.
> OK
> Time taken: 2.41 seconds
> 2016-04-20 07:23:33,199 - 
> 
> 
> 2016-04-20 07:23:33,200 - Running WEBHCAT checks
> 2016-04-20 07:23:33,200 - ---------------------
> 
> 2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
> 2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
> 2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
> 2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
> 2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,248 - call returned (0, '')
> 2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
> 2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,391 - call returned (0, '')
> 2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,444 - call returned (0, '')
> 2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,470 - call returned (0, '')
> 2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
> 2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,571 - call returned (0, '')
> 2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
> 2016-04-20 07:23:33,600 - call returned (0, '')
> 2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
> 2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}
> 
> 
> Thanks,
> 
> Swapan Shridhar
> 
>


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

Posted by Swapan Shridhar <ss...@hortonworks.com>.
-----------------------------------------------------------
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 : 10000
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:10000/;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 10000
2016-04-20 07:22:14,253 - Successfully stayed connected to Hive Server at c6402.ambari.apache.org on port 10000 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 likely be removed in a future release
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties
OK
Time taken: 19.924 seconds
Query ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2
Total jobs = 1
Launching Job 1 out of 1


Status: Running (Executing on YARN cluster with App id application_1461121720303_0015)

Map 1: -/-	Reducer 2: 0/2	
Map 1: 0/1	Reducer 2: 0/2	
Map 1: 0(+1)/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0/2	
Map 1: 1/1	Reducer 2: 0(+1)/2	
Map 1: 1/1	Reducer 2: 1(+1)/2	
Map 1: 1/1	Reducer 2: 2/2	
Status: DAG finished successfully in 2.39 seconds


Query Execution Summary
----------------------------------------------------------------------------------------------
OPERATION                            DURATION
----------------------------------------------------------------------------------------------
Compile Query                           3.79s
Prepare Plan                            0.83s
Submit Plan                             1.55s
Start                                   1.95s
Finish                                  2.39s
----------------------------------------------------------------------------------------------

Task Execution Summary
----------------------------------------------------------------------------------------------
  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS
----------------------------------------------------------------------------------------------
     Map 1         266.00             0            0              2               2
 Reducer 2        1027.00             0            0              2               0
----------------------------------------------------------------------------------------------

LLAP IO Summary
----------------------------------------------------------------------------------------------
  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO
----------------------------------------------------------------------------------------------
     Map 1         0         0          0        0B         0B          0B       0B     0.00s
----------------------------------------------------------------------------------------------


Loading data to table default.llap_smoke_ida8c06640_date222016
Table default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]
OK
Time taken: 11.164 seconds
OK
2
Time taken: 1.016 seconds, Fetched: 1 row(s)
2016-04-20 07:22:58,631 - checked_call returned (0, '2', '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)\nWARNING: Use "yarn jar" to launch YARN applications.\nJava HotSpot(TM) 64-Bit Server VM warning: Using the ParNew young collector with the Serial old collector is deprecated and will likely be removed in a future release\nSLF4J: Class path contains multiple SLF4J bindings.\nSLF4J: Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: 
 Found binding in [jar:file:/usr/hdp/2.5.0.0-157/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]\nSLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\nSLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]\n\nLogging initialized using configuration in jar:file:/usr/hdp/2.5.0.0-157/hive2/lib/hive-common-2.1.0.2.5.0.0-157.jar!/hive-log4j2.properties\nOK\nTime taken: 19.924 seconds\nQuery ID = hive_20160420072245_8d9ea0e3-430a-4a12-a929-692af32c5dd2\nTotal jobs = 1\nLaunching Job 1 out of 1\n\n\nStatus: Running (Executing on YARN cluster with App id application_1461121720303_0015)\n\nMap 1: -/-\tReducer 2: 0/2\t\nMap 1: 0/1\tReducer 2: 0/2\t\nMap 1: 0(+1)/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0/2\t\nMap 1: 1/1\tReducer 2: 0(+1)/2\t\nMap 1: 1/1\tReducer 2: 1(+1)/2\t\nMap 1: 1/1\tReducer 2: 2/2\t\nStatus: DAG finished successfully in 2.39 seconds\n\n\nQuery Execution Summary\n-------------------------
 ---------------------------------------------------------------------\n\x1b[2K\x1b[36;1mOPERATION                            DURATION\n\x1b[22;0m----------------------------------------------------------------------------------------------\nCompile Query                           3.79s\nPrepare Plan                            0.83s\nSubmit Plan                             1.55s\nStart                                   1.95s\nFinish                                  2.39s\n----------------------------------------------------------------------------------------------\n\nTask Execution Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES   DURATION(ms)  CPU_TIME(ms)  GC_TIME(ms)  INPUT_RECORDS  OUTPUT_RECORDS\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         266.00             0            0              2               2\n Reducer 2
         1027.00             0            0              2               0\n----------------------------------------------------------------------------------------------\n\nLLAP IO Summary\n----------------------------------------------------------------------------------------------\n\x1b[2K\x1b[36;1m  VERTICES ROWGROUPS  META_HIT  META_MISS  DATA_HIT  DATA_MISS  ALLOCATION     USED  TOTAL_IO\n\x1b[22;0m----------------------------------------------------------------------------------------------\n     Map 1         0         0          0        0B         0B          0B       0B     0.00s\n----------------------------------------------------------------------------------------------\n\n\nLoading data to table default.llap_smoke_ida8c06640_date222016\nTable default.llap_smoke_ida8c06640_date222016 stats: [numFiles=2, numRows=2, totalSize=672, rawDataSize=204]\nOK\nTime taken: 11.164 seconds\nOK\nTime taken: 1.016 seconds, Fetched: 1 row(s)')
2016-04-20 07:22:58,632 - 


2016-04-20 07:22:58,632 - Running HCAT checks
2016-04-20 07:22:58,632 - -------------------

2016-04-20 07:22:58,633 - checked_call['hostid'] {}
2016-04-20 07:22:58,664 - checked_call returned (0, 'a8c06640')
2016-04-20 07:22:58,665 - File['/var/lib/ambari-agent/tmp/hcatSmoke.sh'] {'content': StaticFile('hcatSmoke.sh'), 'mode': 0755}
2016-04-20 07:22:58,671 - Execute['env JAVA_HOME=/usr/jdk64/jdk1.8.0_60 /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 prepare true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
t2
t3
Time taken: 2.882 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 1.913 seconds
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.447 seconds
2016-04-20 07:23:22,748 - ExecuteHadoop['fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'bin_dir': '/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', 'user': 'hdfs', 'conf_dir': '/usr/hdp/current/hadoop-client/conf'}
2016-04-20 07:23:22,750 - Execute['hadoop --config /usr/hdp/current/hadoop-client/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c06640_date222016'] {'logoutput': True, 'try_sleep': 0, 'environment': {}, 'tries': 1, 'user': 'hdfs', 'path': ['/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']}
2016-04-20 07:23:26,116 - Execute[' /var/lib/ambari-agent/tmp/hcatSmoke.sh hcatsmokeida8c06640_date222016 cleanup true'] {'logoutput': True, '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'], 'tries': 3, 'user': 'ambari-qa', 'try_sleep': 5}
WARNING: Use "yarn jar" to launch YARN applications.
OK
Time taken: 2.41 seconds
2016-04-20 07:23:33,199 - 


2016-04-20 07:23:33,200 - Running WEBHCAT checks
2016-04-20 07:23:33,200 - ---------------------

2016-04-20 07:23:33,201 - File['/var/lib/ambari-agent/tmp/templetonSmoke.sh'] {'content': StaticFile('templetonSmoke.sh'), 'mode': 0755}
2016-04-20 07:23:33,208 - File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] {'owner': 'hdfs', 'content': Template('templeton_smoke.pig.j2')}
2016-04-20 07:23:33,209 - Writing File['/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig'] because it doesn't exist
2016-04-20 07:23:33,211 - Changing owner for /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig from 0 to hdfs
2016-04-20 07:23:33,212 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.pig'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 07:23:33,216 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpoaRcSF 2>/tmp/tmpR8QhoN''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,248 - call returned (0, '')
2016-04-20 07:23:33,249 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.pig in DFS
2016-04-20 07:23:33,249 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /var/lib/ambari-agent/tmp/idtest.ambari-qa.1461137013.2.pig '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpxQAovU 2>/tmp/tmpxJuz4Q''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,391 - call returned (0, '')
2016-04-20 07:23:33,393 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.pig?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmp4ldXiK 2>/tmp/tmpIAfHEU''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,444 - call returned (0, '')
2016-04-20 07:23:33,446 - HdfsResource['/tmp/idtest.ambari-qa.1461137013.2.in'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'source': '/etc/passwd', 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'owner': 'ambari-qa', 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'type': 'file', 'action': ['create_on_execute'], 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 07:23:33,447 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpUsJQfS 2>/tmp/tmppDeIX8''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,470 - call returned (0, '')
2016-04-20 07:23:33,471 - Creating new file /tmp/idtest.ambari-qa.1461137013.2.in in DFS
2016-04-20 07:23:33,471 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT -T /etc/passwd '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=CREATE&user.name=hdfs&overwrite=True'"'"' 1>/tmp/tmpVmK5JJ 2>/tmp/tmpfSyVVj''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,571 - call returned (0, '')
2016-04-20 07:23:33,572 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X PUT '"'"'http://c6402.ambari.apache.org:50070/webhdfs/v1/tmp/idtest.ambari-qa.1461137013.2.in?op=SETOWNER&user.name=hdfs&owner=ambari-qa&group='"'"' 1>/tmp/tmpF_YVbM 2>/tmp/tmpKTftBM''] {'logoutput': None, 'quiet': False}
2016-04-20 07:23:33,600 - call returned (0, '')
2016-04-20 07:23:33,601 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': '', 'default_fs': 'hdfs://c6402.ambari.apache.org:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': 'missing_principal', 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/current/hadoop-client/conf', 'immutable_paths': [u'/apps/hive/warehouse', u'/mr-history/done', u'/app-logs', u'/tmp']}
2016-04-20 07:23:33,601 - Execute['/var/lib/ambari-agent/tmp/templetonSmoke.sh c6402.ambari.apache.org ambari-qa 50111 idtest.ambari-qa.1461137013.2.pig no_keytab false kinit no_principal'] {'logoutput': True, 'path': ['/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin'], 'tries': 3, 'try_sleep': 5}


Thanks,

Swapan Shridhar