amarnath reddy pappu created AMBARI-25229:
---------------------------------------------

             Summary: service check fails for Hive service if SSL is enabled
                 Key: AMBARI-25229
                 URL: https://issues.apache.org/jira/browse/AMBARI-25229
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.7.3
            Reporter: amarnath reddy pappu


Steps to reproduce the issue

1. Enable SSL for hive service and restart the services.

2. do the service check and it fails with below errors.


{noformat}
stderr: 
Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/service_check.py",
 line 90, in check_hive_server
    ssl_keystore=ssl_keystore, ssl_password=ssl_password)
  File 
"/usr/lib/ambari-agent/lib/resource_management/libraries/functions/hive_check.py",
 line 84, in check_thrift_port_sasl
    timeout_kill_strategy=TerminateStrategy.KILL_PROCESS_TREE,
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, 
in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", 
line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", 
line 124, in run_action
    provider_action()
  File 
"/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 
263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, 
in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, 
in checked_call
    tries=tries, try_sleep=try_sleep, 
timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, 
in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, 
in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of 'beeline -n hive -u 
'jdbc:hive2://c3111-node4.hdp.com:10000/;transportMode=binary;principal=hive/[email protected]'
  -e ';' 2>&1 | awk '{print}' | grep -i -e 'Connected to:' -e 'Transaction 
isolation:'' returned 1. 

The above exception was the cause of the following exception:

Traceback (most recent call last):
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/service_check.py",
 line 158, in 
    HiveServiceCheck().execute()
  File 
"/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", 
line 352, in execute
    method(env)
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/service_check.py",
 line 56, in service_check
    int(format("{hive_server_port}")), params.hive_ssl_keystore_path, 
params.hive_ssl_keystore_password)
  File 
"/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/service_check.py",
 line 105, in check_hive_server
    .format(server_component_name, params.hostname, server_port, elapsed_time))
resource_management.core.exceptions.Fail: Connection to 'Hive Server' on host: 
c3111-node3.hdp.com and port 10000 failed after 290.825858116 seconds
{noformat}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to