Hi Team, I am new to apache flink and trying to s...
# troubleshooting
s
Hi Team, I am new to apache flink and trying to setup flink locally.I have pre installed python==3.8, java==11.0.11 and apache-flink==1.17.0. I am trying to run simple word count code but getting below error, Can anyone please help me on this error.
d
@Shivam Bansal This issue usually happens on JDK 17 which is still not supported. Could you check the actual JDK version used via the logging file which should be located in
venv/lib/python3.9/site-packages/pyflink/log/flink-xxx-client-xxx.log
? You will see log messages similar to the following:
Copy code
2023-03-02 14:27:15,920 INFO  org.apache.flink.client.cli.CliFrontend                      [] -  JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
s
@Dian Fu, Thanks for the looking into it. i have checked the log folder but there are only two files present in this location
empty.txt
and
flink-shivam.bansal-python-JG-HT7J3VV932.log
.
d
@Shivam Bansal How did you execute the job? via command line?
s
No, from the intelij itself.
d
Then I guess
java -version
printed in command line is meaningless. The JDK version saw in the IDE may be different from the JDK version saw in console.
Per my understanding, the JAVA version used in the IDE should be printed in the console of the IDE.
s
then where i can find java version, any idea?