You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jungtaek Lim (JIRA)" <ji...@apache.org> on 2019/06/19 08:26:00 UTC

[jira] [Created] (AMBARI-25315) Spark2 thrift server alert doesn't work when SSL is not enabled

Jungtaek Lim created AMBARI-25315:
-------------------------------------

             Summary: Spark2 thrift server alert doesn't work when SSL is not enabled
                 Key: AMBARI-25315
                 URL: https://issues.apache.org/jira/browse/AMBARI-25315
             Project: Ambari
          Issue Type: Bug
          Components: alerts
    Affects Versions: 2.7.4
            Reporter: Jungtaek Lim
            Assignee: Jungtaek Lim


With SSL disabled for Spark2, Ambari alerts fail with below exception:
{code:java}
Connection failed on host <host>:10016 (Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/SPARK2/2.0.0/package/scripts/alerts/alert_spark2_thrift_port.py", line 173, in execute
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 -u jdbc:hive2://<host>:10016/default;principal=hive/<host>@EXAMPLE.COM transportMode=binary -e '' 2>&1| awk '{print}'|grep -i -e 'Connection refused' -e 'Invalid URL'' returned 1. Connecting to jdbc:hive2://<host>:10016/default
19/06/19 08:13:44 [main]: WARN jdbc.HiveConnection: Failed to connect to <host>:10016
Error: Could not open client transport with JDBC Uri: jdbc:hive2://<host>/default: Peer indicated failure: Unsupported mechanism type PLAIN (state=08S01,code=0)
Beeline version 1.2.1000.2.6.4.0-91 by Apache Hive
0: jdbc:hive2://ctr-e139-1542663976389-141470 (closed)> 19/06/19 08:13:44 [main]: WARN jdbc.HiveConnection: Failed to connect to <host>:10016
Error: Could not open client transport with JDBC Uri: jdbc:hive2://<host>:10016/default: Peer indicated failure: Unsupported mechanism type PLAIN (state=08S01,code=0)
){code}
 

Looks like the logic on constructing JDBC URL is not correct. Given we have a chance to fix up the logic for JDBC URL, I'd address AMBARI-25211 here as well.



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