Thijs van de Poll
04/17/2023, 3:53 PM.jar dependencies. Both pipelines work properly if I add the dependencies to the /opt/flink/lib folder. As a solution I wanted to add in one of the pipelines and additional pipeline.jars configuration which adds some more jars required for that specific pipeline. However, I keep on getting errors which indicate that the jars are not loaded correctly.
I also tried to run the pipeline using ./bin/flink run --python pipeline.py --jarfile jar_dependency.jar , but that also did not work.
Does anyone understand why this does not work? A potential workaround would be to to build different images for the different pipelines, but I rather not do that. Thanks in advance!Thijs van de Poll
04/17/2023, 4:45 PMflink-sql-connector-hive-3.1.2 is added to the /lib folder) gives the conflict. I got the following error:
...
Caused by: java.lang.NoClassDefFoundError: org/apache/flink/table/planner/delegation/DialectFactory
...
The solution is to move the planner JAR as discussed in the documentation: https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/connectors/table/hive/overview/Thijs van de Poll
04/17/2023, 4:46 PMpipeline.jars was not working.Martijn Visser
04/18/2023, 8:08 AMThijs van de Poll
04/18/2023, 8:08 AMThijs van de Poll
04/18/2023, 8:09 AM