sunjincheng121 commented on a change in pull request #8472:
[FLINK-12327][python] Adds support to submit Python Table API job in CliFrontend
URL: https://github.com/apache/flink/pull/8472#discussion_r287532751
##########
File path:
flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java
##########
@@ -771,30 +775,50 @@ PackagedProgram buildProgram(ProgramOptions options)
throws FileNotFoundExceptio
String jarFilePath = options.getJarFilePath();
List<URL> classpaths = options.getClasspaths();
- if (jarFilePath == null) {
- throw new IllegalArgumentException("The program JAR
file was not specified.");
+ String entryPointClass;
+ File jarFile = null;
+ if (options.isPython()) {
+ // If the job is specified a jar file
+ if (jarFilePath != null) {
+ jarFile = getJarFile(jarFilePath);
+ }
+ // The entry point class of python job is PythonDriver
+ entryPointClass = PythonDriver.class.getCanonicalName();
+ } else {
+ if (jarFilePath == null) {
+ throw new IllegalArgumentException("The program
JAR file was not specified.");
Review comment:
Java program should be specified a JAR file.
----------------------------------------------------------------
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]
With regards,
Apache Git Services