[
https://issues.apache.org/jira/browse/AMBARI-13535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dmytro Sen reopened AMBARI-13535:
---------------------------------
Ths commit breaks 3 unit tests
{code}
----------------------------------------------------------------------
Failed tests:
FAIL: test_service_check_default (test_hive_service_check.TestServiceCheck)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/dmitry/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
return func(*args, **keywargs)
File
"/home/dmitry/ambari/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py",
line 47, in test_service_check_default
timeout = 30,
File
"/home/dmitry/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 239, in assertResourceCalled
self.assertEquals(name, resource.name)
AssertionError: "! beeline -u
'jdbc:hive2://c6402.ambari.apache.org:10000/;transportMode=binary;auth=noSasl'
-e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'" !=
u"! beeline -u
'jdbc:hive2://c6402.ambari.apache.org:10000/;transportMode=binary;auth=noSasl'
-e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL' -e
'Error'"
FAIL: test_service_check_during_upgrade
(test_hive_service_check.TestServiceCheck)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/dmitry/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
return func(*args, **keywargs)
File
"/home/dmitry/ambari/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py",
line 271, in test_service_check_during_upgrade
user = 'ambari-qa')
File
"/home/dmitry/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 239, in assertResourceCalled
self.assertEquals(name, resource.name)
AssertionError: "! beeline -u
'jdbc:hive2://c6402.ambari.apache.org:10010/;transportMode=binary' -e '' 2>&1|
awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'" != u"! beeline
-u 'jdbc:hive2://c6402.ambari.apache.org:10010/;transportMode=binary' -e ''
2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL' -e 'Error'"
FAIL: test_service_check_secured (test_hive_service_check.TestServiceCheck)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/dmitry/ambari/ambari-server/../ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
return func(*args, **keywargs)
File
"/home/dmitry/ambari/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_service_check.py",
line 158, in test_service_check_secured
timeout = 30,
File
"/home/dmitry/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 239, in assertResourceCalled
self.assertEquals(name, resource.name)
AssertionError: "! beeline -u
'jdbc:hive2://c6402.ambari.apache.org:10000/;transportMode=binary;principal=hive/[email protected]'
-e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'" !=
u"! beeline -u
'jdbc:hive2://c6402.ambari.apache.org:10000/;transportMode=binary;principal=hive/[email protected]'
-e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL' -e
'Error'"
----------------------------------------------------------------------
Total run:861
Total errors:0
Total failures:3
ERROR
{code}
> Hive service check failed with ssl enabled
> ------------------------------------------
>
> Key: AMBARI-13535
> URL: https://issues.apache.org/jira/browse/AMBARI-13535
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: Chen Xin Yu
> Assignee: Chen Xin Yu
> Fix For: 2.1.3
>
> Attachments: AMBARI-13535.patch
>
>
> If user enable SSL for Hive on ambari UI, hive service check script is not
> correct, jdbc connection to detect HS2 status is missing ssl params as below:
> ! beeline -u 'jdbc:hive2://com.apache.host:10000/;transportMode=binary;' -e
> ''
> Service check for hive on ambari UI works well as there is less error detect,
> although service check passed, but user will be confused. It's deceiving.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)