[
https://issues.apache.org/jira/browse/AMBARI-25315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870999#comment-16870999
]
Hudson commented on AMBARI-25315:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-branch-2.7 #541 (See
[https://builds.apache.org/job/Ambari-branch-2.7/541/])
[AMBARI-25315][AMBARI-25211] Fix the logic on constucting JDBC URL for
(hapy.lestat:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=ad5abae4392822736b130a9577037d2714a829cd])
* (edit)
ambari-server/src/main/resources/common-services/SPARK2/2.0.0/package/scripts/alerts/alert_spark2_thrift_port.py
> 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
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 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)