Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
514 views
in Technique[技术] by (71.8m points)

Flink webui中不显示日志和输出

如题,我是通过docker-compose搭建的集群,用的是官方的docker-compose,改动了一下版本。

version: "2.1"
services:
  jobmanager:
    image: flink:1.9.2-scala_2.11
    expose:
      - "6123"
    ports:
      - "8081:8081"
    command: jobmanager
    environment:
      - JOB_MANAGER_RPC_ADDRESS=jobmanager

  taskmanager:
    image: flink:1.9.2-scala_2.11
    expose:
      - "6121"
      - "6122"
    depends_on:
      - jobmanager
    command: taskmanager
    links:
      - "jobmanager:jobmanager"
    environment:
      - JOB_MANAGER_RPC_ADDRESS=jobmanager

通过docker-compose启动,设置--scale taskmanager=3
测试通过了WordCount:
image.png
并且在shell中输入数据也没有报错(这里端口设置的是8888):
image.png
但是最后检查在所有的taskmanager中的log和stdout里面都没有输出:
image.png
image.png
求助是怎么回事呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

容器部署的话日志是输出在console里的,所以webui看不到,可以通过docker logs -f [container] 或者docker-compose logs -f [SERVICE]的方式去查看。

来源:There is no Logs and Stdout in Flink WebUI


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...