After a fresh installation, I got the following error. Can anyone know how to resolve this issue?
Connection failed on host hadoo.domain.com:10016 (Traceback (most recent call last): File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SPARK2/package/scripts/alerts/alert_spark2_thrift_port.py", line 147, in execute Execute(cmd, user=sparkuser, path=[beeline_cmd], timeout=CHECK_COMMAND_TIMEOUT_DEFAULT) File "/usr/lib/ambari-agent/lib/resource_management/core/base.py...
I also got the same error after fresh installation. Not sure if we can just go ahead with disabling the alert for time being , as we need thrift only to provide access to SparkSQL via JDBC /ODBC. For spark-submit and spark-shell it won't be needed.
Try opening port 10016 through iptables on the node where you have installed spark thrift client and then restart SPARK2 via ambari. It resolved this alert for me.
iptables -I INPUT -p tcp --dport 10016 -j ACCEPT
iptables -I OUTPUT -p tcp --dport 10016 -j ACCEPT