Open kalencaya opened 2 years ago
When try to submit flink to Hadoop cluster, Hadoop will assign random port for flink cluster. On docker environment, new assigned port has not been exposed and network exception raised. Following image is Hadoop on metal machine:
This is Hadoop on docker:
I'm using
docker-compose.yml
bootstrap Hadoop cluster on macOS as my local develop environment and try to submit flink job to it. This is mydocker-compose.yml
and env: https://github.com/flowerfine/scaleph/tree/dev/tools/docker/hadoopTo run successfully on macOS, I had added
${host ip} datanode namenode ... ${namenode container id} ${datanode container id} ...
to my local hosts file, then I can browse HDFS from web-ui, submit flink application or per-job deploy mode job, create session cluster. But when I try to access submited flink cluster, such as list jobs or submit flink job to created session cluster, exception encontered:Notice that every attemp will fail on another port, not always
127.0.0.1:41565
. Can any one give me some advice? I will appreciate your help