aljoscha commented on a change in pull request #12317:
URL: https://github.com/apache/flink/pull/12317#discussion_r429811417



##########
File path: 
flink-clients/src/main/java/org/apache/flink/client/deployment/DefaultClusterClientServiceLoader.java
##########
@@ -70,6 +70,14 @@
                        throw new IllegalStateException("Multiple compatible 
client factories found for:\n" + String.join("\n", configStr) + ".");
                }
 
-               return compatibleFactories.isEmpty() ? null : 
(ClusterClientFactory<ClusterID>) compatibleFactories.get(0);
+               if (compatibleFactories.isEmpty()) {
+                       throw new IllegalStateException(
+                                       "No ClusterClientFactory found to 
execute the application." +
+                                       " If you were targeting a Yarn cluster, 
please make sure to have " +
+                                       "hadoop in your classpath. For more 
information refer to the " +

Review comment:
       ```suggestion
                                        "Hadoop in your classpath. For more 
information refer to the " +
   ```
   
   same as above, also mention `HADOOP_CLASSPATH`




----------------------------------------------------------------
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:
[email protected]


Reply via email to