Hey, I'm having problems to use the Table Stream A...
# troubleshooting
m
Hey, I'm having problems to use the Table Stream API.
Copy code
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
StreamTableEnvironment tEnv = StreamTableEnvironment.create(env); // <- exception here
Exception:
Copy code
Exception in thread "main" org.apache.flink.table.api.TableException: Could not instantiate the executor. Make sure a planner module is on the classpath
Dependencies (among others):
Copy code
<dependency>
	<groupId>org.apache.flink</groupId>
	<artifactId>flink-table-planner-blink_2.11</artifactId>
	<version>1.13.6</version>
	<scope>provided</scope>
</dependency>
<dependency>
	<groupId>org.apache.flink</groupId>
	<artifactId>flink-streaming-scala_2.11</artifactId>
	<version>1.13.6</version>
	<scope>provided</scope>
</dependency>
I run flink within intellij and have "add dependencies with
provided
to classpath" activated. According to Stackoverflow and other resources, this should be sufficient. I checked the dependencies in intellij and the planner-blink is present. Has someone an idea why it still crashes?
m
I think you need to upgrade to a later version. And check the Scala suffixes since they are not needed / outdated
m
Thank you for your help. I also tried the updated version but it was the same problem. I checked the dependencies again and found that the
flink-table-planner
also installs the
flink-scala
as implicit dependency, so my second dependency from above was redundant. I changed my dependencies to just:
Copy code
<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-planner_2.12</artifactId>
			<version>1.18.1</version>
			<scope>provided</scope>
		</dependency>
However, this still didn't fix it. What fixed it in the end for me was to have only the named dependency, delete all
run
configurations in intellij, invalidate the caches, restart, reinstall maven dependencies and reconfigure the run configuration from scratch. So this problem is solved✅
m
Keep in mind that most likely you don’t need this planner artifact. Check the 1.15 release notes for details