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

 ##########
 File path: airflow/contrib/hooks/spark_submit_hook.py
 ##########
 @@ -174,8 +174,7 @@ def _resolve_should_track_driver_status(self):
         subsequent spark-submit status requests after the initial spark-submit 
request
         :return: if the driver status should be tracked
         """
-        return ('spark://' in self._connection['master'] and
-                self._connection['deploy_mode'] == 'cluster')
+        return self._connection['deploy_mode'] == 'cluster'
 
 Review comment:
   return (('spark://' in self._connection['master'] or conn_type starts with 
spark) and self._connection['deploy_mode'] == 'cluster')

----------------------------------------------------------------
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