zoukankan      html  css  js  c++  java
  • Flink 在IDEA执行时的webui

    不过Flink IDEA中执行的webui 需要 flink-runtime-web 包的支持

    pom 如下:

    <dependency>
                <groupId>org.apache.flink</groupId>
                <artifactId>flink-runtime-web_${scala.binary.version}</artifactId>
                <version>${flink.version}</version>
    </dependency>

    启动日志如下:

    2019-08-13 09:52:58,907 WARN  org.apache.flink.runtime.webmonitor.WebMonitorUtils           - Log file environment variable 'log.file' is not set.
    2019-08-13 09:52:58,907 WARN  org.apache.flink.runtime.webmonitor.WebMonitorUtils           - JobManager log files are unavailable in the web dashboard. Log file location not found in environment variable 'log.file' or configuration key 'Key: 'web.log.path' , default: null (deprecated keys: [jobmanager.web.log.path])'.
    2019-08-13 09:52:58,943 INFO  org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint    - Rest endpoint listening at localhost:2841
    2019-08-13 09:52:58,943 INFO  org.apache.flink.runtime.highavailability.nonha.embedded.EmbeddedLeaderService  - Proposing leadership to contender org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint@652ce654 @ http://localhost:2841
    2019-08-13 09:52:58,943 INFO  org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint    - Web frontend listening at http://localhost:2841.
    2019-08-13 09:52:58,944 INFO  org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint    - http://localhost:2841 was granted leadership with leaderSessionID=5f3b1a14-3c2c-4af7-8f00-f8b715f18d16
    2019-08-13 09:52:58,944 INFO  org.apache.flink.runtime.minicluster.MiniCluster              - Starting job dispatcher(s) for JobManger

    flink webui监听地址如下:  http://localhost:2841

    打开对应地址:

    进入job:

    Metrics 也正常:

    不过 logs 和 Stdout 是没有值的

    如果配置了pom 还是没有webui,先检查下端口,确定没问题,可以查看下下面的链接:

    https://stackoverflow.com/questions/46988499/flink-webui-when-running-from-ide

    http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Can-t-access-Flink-Dashboard-at-8081-running-Flink-program-using-Eclipse-td8016.html

  • 相关阅读:
    jquery的each()详细介绍【转】
    牛客-小w的a=b问题
    HDU-6707-Shuffle Card(很数据结构的一道题)
    HDU-6672-Seq
    牛客-随机数
    牛客-小阳的贝壳
    HDU-4417-Super Mario
    牛客-Corn Fields
    HDU-2665-Kth number
    线段树模板
  • 原文地址:https://www.cnblogs.com/Springmoon-venn/p/11344326.html
Copyright © 2011-2022 走看看