Hello Everyone, I am trying to build flink from so...
# troubleshooting
m
Hello Everyone, I am trying to build flink from source using mvn clean install -DskipTests, but i got below error:
t
Did you look above this log line at what the errors say?
What version of Java are you building Flink with?
JDK 17 is the default and I suspect you are getting this error because you are trying to build it with JDK 11 or lower
You can build it with 11 but as per the README instructions you will need to set the correct profile:
Copy code
./mvnw clean package -DskipTests -Djdk11 -Pjava11-target
The README makes this clear, however the docs on the website are actually wrong so I have submitted a PR to update them.
m
Thank you , will try and let you know
The same applicable for flink cdc?
t
But you should be be able to build it fine with Java 17
To make all this easier I recommend using https://sdkman.io/
m
Could you please guide me on setting up flink cdc and flink, as I am new to contributions
t
The README on the flink CDC has details on building too
m
Thank you, are there any beginner issues to work on?
t
You can check the upstream JIRA. For CDC you could start by adding build instructions to the CONTRIBUTING file (once you figure out how to do it). I would look in the
.github/workflow
folder for the CI setup and see what instructions that is running.
m
Thank you
d
Hi @Mahesh Sambharam, Are you able to build Flink CDC source? If yes, can you help with it - https://apache-flink.slack.com/archives/C03G7LJTS2G/p1752281372283379 ? I am getting errors.
m
I didn't get this error while building
although i'm building from master branch
d
@Mahesh Sambharam what steps did you use for building? Can you share the commands?
m
I used
mvn clean install -DskipTests
Command for build