Slackbot
02/28/2023, 10:08 AMMartijn Visser
02/28/2023, 10:08 AMMartijn Visser
02/28/2023, 10:09 AMMartijn Visser
02/28/2023, 10:09 AMMartijn Visser
02/28/2023, 10:10 AMMartijn Visser
02/28/2023, 2:11 PMKrzysztof Chmielewski
02/28/2023, 2:17 PMKrzysztof Chmielewski
02/28/2023, 2:20 PMKrzysztof Chmielewski
02/28/2023, 2:28 PMKrzysztof Chmielewski
02/28/2023, 2:29 PMKrzysztof Chmielewski
02/28/2023, 3:10 PMMartijn Visser
02/28/2023, 3:11 PMKrzysztof Chmielewski
02/28/2023, 3:13 PMKrzysztof Chmielewski
02/28/2023, 3:21 PMKrzysztof Chmielewski
02/28/2023, 3:23 PMKrzysztof Chmielewski
02/28/2023, 3:24 PMKrzysztof Chmielewski
02/28/2023, 3:33 PMplease check for "AllDependency" uber jar@Neha Sory, I asked before but I dont think you answered it. Is your use case allow for submitting your jobs using "uberJar" strategy instead shipping delta connector to the cluster? If yest then you could use the example pom.xml Ive send in previous message.
Krzysztof Chmielewski
02/28/2023, 3:37 PMKrzysztof Chmielewski
02/28/2023, 4:20 PMKrzysztof Chmielewski
02/28/2023, 7:05 PMmvn clean package on this new project. This should give you a new artifact DeltaAllDep-1.0-SNAPSHOT-shaded.jar. Add this jar to Flink cluster (under flink's lib folder)
4. In your Flink Job project, where you want to use Delta Connector mark delta-standalone and delta-flink dependencies as <scope>provided</scope> Something like this:
<dependency>
<groupId>io.delta</groupId>
<artifactId>delta-flink</artifactId>
<version>${connectors.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.delta</groupId>
<artifactId>delta-standalone_${scala.main.version}</artifactId>
<version>${connectors.version}</version>
<scope>provided</scope>
</dependency>
Build Flink Job jar.
5. Submit jar from point 4 to Flink cluster. It should not contain delta libraries.
I've tried this on locally on Docker based Flink cluster and it seems to do the job. I was able to submit "vanilla" Delta Job.Krzysztof Chmielewski
03/01/2023, 12:43 PMKrzysztof Chmielewski
03/01/2023, 12:44 PM