tooptoop4 commented on a change in pull request #7075: [AIRFLOW-6212] 
SparkSubmitHook resolve connection
URL: https://github.com/apache/airflow/pull/7075#discussion_r363944283
 
 

 ##########
 File path: airflow/contrib/hooks/spark_submit_hook.py
 ##########
 @@ -190,17 +189,22 @@ def _resolve_connection(self):
             # Master can be local, yarn, spark://HOST:PORT, mesos://HOST:PORT 
and
             # k8s://https://<HOST>:<PORT>
             conn = self.get_connection(self._conn_id)
-            if conn.port:
-                conn_data['master'] = "{}:{}".format(conn.host, conn.port)
+            if conn.conn_type in ['spark', 'mesos']:
 
 Review comment:
   revert this section 192-200

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to