Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
2.7.4
-
None
Description
With SSL disabled for Spark2, Ambari alerts fail with below exception:
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) )
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.
Attachments
Issue Links
- links to