incubator-streampark
incubator-streampark copied to clipboard
Kube Conf File setting of kubernetes session is invalid
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
at setting page ,i new add a flink cluster of kubernetes session and setting Kube Conf File value is /etc/kubernetes/admin.conf. and start cluster but exception.



StreamPark Version
1.2.3
Java Version
jdk8
Flink Version
1.14.5-2.12
Scala Version of Flink
2.12
Error Exception
Caused by: java.nio.file.NoSuchFileException: /etc/kubernetes/admin.conf
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at org.apache.flink.util.FileUtils.readAllBytes(FileUtils.java:171)
at org.apache.flink.util.FileUtils.readFile(FileUtils.java:137)
at org.apache.flink.util.FileUtils.readFileUtf8(FileUtils.java:142)
at org.apache.flink.kubernetes.kubeclient.FlinkKubeClientFactory.fromConfiguration(FlinkKubeClientFactory.java:80)
... 22 more
Screenshots

Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
I solve the problem in this way. cp -rf /etc/kubernetes/admin.conf /root/.kube/config