You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "amarnath reddy pappu (JIRA)" <ji...@apache.org> on 2019/04/08 23:47:00 UTC

[jira] [Commented] (AMBARI-25229) service check fails for Hive service if SSL is enabled

    [ https://issues.apache.org/jira/browse/AMBARI-25229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812878#comment-16812878 ] 

amarnath reddy pappu commented on AMBARI-25229:
-----------------------------------------------

Defining below  configs under hive-site works fine.
{noformat}
<property>
  <name>hive.server2.use.SSL</name>
  <value>true</value>
  <description></description>
</property>
 
<property>
  <name>hive.server2.keystore.path</name>
  <value>keystore-file-path</value>
  <description></description>
</property>

<property>
  <name>hive.server2.keystore.password</name>
  <value>keystore-file-password</value>
  <description></description>
</property>
{noformat}


> 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
>            Assignee: amarnath reddy pappu
>            Priority: Major
>
> 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/_HOST@HWX.COM'  -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)