Hello, I am using flink with kubernetes with Flink operator. I want to set up logs in json format for which I have to add some external jars to flink classpath. How can I add external jars using FlinkDeployment resource?
Chetan Patel
12/31/2023, 4:45 PM
Can someone help me with this?
b
Bhupendra Yadav
01/05/2024, 10:09 AM
You can build a new flink/flink operator image on top of the official one and add the jar to the lib directory. All jars in lib dir are loaded to the classpath when the pod starts.
Copy code
FROM flink:java8
RUN cd /opt/flink/lib && curl -O <maven-jar-url>
USER flink