Damian Fiłonowicz
09/22/2024, 9:46 AMjava.lang.IllegalStateException: No ExecutorFactory found to execute the application.
Do you know what may be missing in the setup?
I see the postgres table in the catalog, but I cannot execute any operations on it.
When I want to create a new table in the catalog in sql-client, I additionally get org.apache.flink.table.gateway.api.utils.SqlGatewayException: Failed to fetchResults.
D. Draco O'Brien
09/22/2024, 11:25 AM./lib directory
You probably want to check that the versions of these jars are compatible with Flink 1.19.1D. Draco O'Brien
09/22/2024, 11:26 AMD. Draco O'Brien
09/22/2024, 11:28 AMflink-conf.yml
D. Draco O'Brien
09/22/2024, 11:29 AMD. Draco O'Brien
09/22/2024, 11:31 AMD. Draco O'Brien
09/22/2024, 11:31 AMrmoff
09/23/2024, 7:58 AMDamian Fiłonowicz
09/23/2024, 12:19 PMDamian Fiłonowicz
09/23/2024, 12:28 PMDamian Fiłonowicz
09/23/2024, 12:31 PMrmoff
09/23/2024, 1:42 PMDamian Fiłonowicz
09/23/2024, 3:41 PMlib:
total 199M
drwxr-xr-x 1 flink flink 4.0K Sep 23 12:23 ..
drwxr-xr-x 1 root root 4.0K Sep 22 10:12 hive
drwxr-xr-x 1 flink flink 4.0K Sep 21 12:26 .
-rw-r--r-- 1 flink flink 121M Jun 6 14:32 flink-dist-1.19.1.jar
-rw-r--r-- 1 flink flink 15M Jun 6 14:31 flink-table-api-java-uber-1.19.1.jar
-rw-r--r-- 1 flink flink 21M Jun 6 14:31 flink-scala_2.12-1.19.1.jar
-rw-r--r-- 1 flink flink 37M Jun 6 14:31 flink-table-planner-loader-1.19.1.jar
-rw-r--r-- 1 flink flink 100K Jun 6 14:27 flink-csv-1.19.1.jar
-rw-r--r-- 1 flink flink 199K Jun 6 14:26 flink-json-1.19.1.jar
-rw-r--r-- 1 flink flink 546K Jun 6 14:24 flink-connector-files-1.19.1.jar
-rw-r--r-- 1 flink flink 3.4M Jun 6 14:22 flink-table-runtime-1.19.1.jar
-rw-r--r-- 1 flink flink 194K Jun 6 14:22 flink-cep-1.19.1.jar
-rw-r--r-- 1 flink flink 204K Feb 2 2023 log4j-1.2-api-2.17.1.jar
-rw-r--r-- 1 flink flink 295K Feb 2 2023 log4j-api-2.17.1.jar
-rw-r--r-- 1 flink flink 1.8M Feb 2 2023 log4j-core-2.17.1.jar
-rw-r--r-- 1 flink flink 24K Feb 2 2023 log4j-slf4j-impl-2.17.1.jar
lib/hive:
total 465M
drwxr-xr-x 1 root root 4.0K Sep 22 10:12 .
drwxr-xr-x 1 flink flink 4.0K Sep 21 12:26 ..
-rw-r--r-- 1 root root 371M Sep 4 20:53 aws-java-sdk-bundle-1.12.771.jar
-rw-r--r-- 1 root root 658K Aug 24 19:06 commons-lang3-3.17.0.jar
-rw-r--r-- 1 root root 1.1M Aug 22 13:59 postgresql-42.7.4.jar
-rw-r--r-- 1 root root 1.6M Jul 5 17:15 jackson-databind-2.17.2.jar
-rw-r--r-- 1 root root 569K Jul 5 17:03 jackson-core-2.17.2.jar
-rw-r--r-- 1 root root 77K Jul 5 16:50 jackson-annotations-2.17.2.jar
-rw-r--r-- 1 root root 50M Jun 6 13:39 flink-sql-connector-hive-3.1.3_2.12-1.19.1.jar
-rw-r--r-- 1 root root 6.5M Jun 6 13:32 flink-sql-parquet-1.19.1.jar
-rw-r--r-- 1 root root 209K May 6 22:22 delta-flink-3.2.0.jar
-rw-r--r-- 1 root root 11M May 6 22:22 delta-standalone_2.12-3.2.0.jar
-rw-r--r-- 1 root root 25K May 6 22:21 delta-storage-3.2.0.jar
-rw-r--r-- 1 root root 379K Apr 18 10:15 flink-connector-jdbc-3.2.0-1.19.jar
-rw-r--r-- 1 root root 192K Oct 10 2023 stax2-api-4.2.2.jar
-rw-r--r-- 1 root root 941K Jul 29 2022 hadoop-aws-3.3.4.jar
-rw-r--r-- 1 root root 1.6M Jul 29 2022 hadoop-mapreduce-client-core-3.3.4.jar
-rw-r--r-- 1 root root 6.0M Jul 29 2022 hadoop-hdfs-3.3.4.jar
-rw-r--r-- 1 root root 4.3M Jul 29 2022 hadoop-common-3.3.4.jar
-rw-r--r-- 1 root root 102K Jul 29 2022 hadoop-auth-3.3.4.jar
-rw-r--r-- 1 root root 112K Jun 30 2022 re2j-1.7.jar
-rw-r--r-- 1 root root 3.3M May 26 2021 hadoop-shaded-guava-1.1.1.jar
-rw-r--r-- 1 root root 3.2M Apr 9 2021 shapeless_2.12-2.3.4.jar
-rw-r--r-- 1 root root 511K Jul 15 2019 woodstox-core-5.3.0.jar
-rw-r--r-- 1 root root 2.7M Oct 18 2018 guava-27.0-jre.jar
-rw-r--r-- 1 root root 603K Feb 5 2017 commons-configuration2-2.1.1.jar
-rw-r--r-- 1 root root 61K May 16 2013 commons-logging-1.1.3.jar
rmoff
09/23/2024, 3:47 PMD. Draco O'Brien
09/23/2024, 4:32 PMDamian Fiłonowicz
09/23/2024, 7:55 PM./bin/sql-gateway.sh start -Dsql-gateway.endpoint.rest.address=localhost
Then start sql-client and execute 3 statements:
./bin/sql-client.sh
CREATE CATALOG my_catalog WITH (
'type' = 'jdbc',
'default-database' = 'benchmark_results',
'username' = 'postgres',
'password' = 'postgres',
'base-url' = 'jdbc:<postgresql://postgres-postgresql.tpcds.svc.cluster.local:5432>'
);
USE CATALOG my_catalog;
then select * from mytable
(show tables
shows the table from public schema in postgres).
And that's how I get ERROR org.apache.flink.table.gateway.service.SqlGatewayServiceImpl - Failed to fetchResults.
I attached a full stack trace.
log/flink--sql-gateway [...] .out file contains only
ERROR StatusLogger Reconfiguration failed: No configuration found for '5a2e4553' at 'null' in 'null'
ERROR StatusLogger Reconfiguration failed: No configuration found for '4a668b6e' at 'null' in 'null'
D. Draco O'Brien
09/26/2024, 1:22 AMCaused by: java.lang.IllegalStateException: No ExecutorFactory found to execute the application.
at org.apache.flink.core.execution.DefaultExecutorServiceLoader.getExecutorFactory(DefaultExecutorServiceLoader.java:88)
This is usually caused when Flink cannot determine how to execute the submitted job. Probably a mismatch or misconfiguration in the execution environment setup where custom or specific executors are required.
So it’s probably how SQL Gateway is initialized or its configuration, rather than a missing JAR or classpath issue.
Check that your Flink SQL Gateway configuration flink-conf.yaml has the correct execution settings. In particular see if you need to explicitly set execution.runtime-mode to batch or streaming depending on your operations.
Also check if there’s any custom configuration related to the executor service loader ie
execution.executor-service-loader.class
that might be needed.D. Draco O'Brien
09/26/2024, 1:23 AMD. Draco O'Brien
09/26/2024, 1:24 AMD. Draco O'Brien
09/26/2024, 1:26 AMD. Draco O'Brien
09/26/2024, 1:35 AMorg.apache.flink.core.execution and org.apache.flink.table.gateway.service.operation
to get more details. I think you may need to check the log4j settings. In Flink 1.19.1 it’s probably in
/opt/flink/conf/log4j2.xml