首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Flink历史服务器没有显示正在运行的应用程序

Flink历史服务器没有显示正在运行的应用程序
EN

Stack Overflow用户
提问于 2017-09-21 09:28:32
回答 1查看 1.6K关注 0票数 1

我正在尝试配置flink历史服务器。我已经跟踪了flink文档这里。我能够打开历史服务器,但只能看到已完成的作业,而不能看到正在运行的作业。我是遗漏了什么,还是仅仅在历史服务器中显示了已完成的作业。帮帮忙吧。

当前集群中的作业:

本地主机:8081/joboverview

代码语言:javascript
复制
{
    "running": [
        {
            "jid": "e4e6edb76b887054d7aca460b7136937",
            "name": "Filter",
            "state": "RUNNING",
            "start-time": 1505971363801,
            "end-time": -1,
            "duration": 11588615,
            "last-modification": 1505971363832,
            "tasks": {
                "total": 1,
                "pending": 0,
                "running": 1,
                "finished": 0,
                "canceling": 0,
                "canceled": 0,
                "failed": 0
            }
        }
    ],
    "finished": [
        {
            "jid": "ec16f4cf01192268150c750966cefd0d",
            "name": "Flink Java Job at Thu Sep 21 10:52:09 IST 2017",
            "state": "FINISHED",
            "start-time": 1505971329989,
            "end-time": 1505971330746,
            "duration": 757,
            "last-modification": 1505971330746,
            "tasks": {
                "total": 3,
                "pending": 0,
                "running": 0,
                "finished": 3,
                "canceling": 0,
                "canceled": 0,
                "failed": 0
            }
        }
    ]
}

历史服务器中提供的作业

本地主机:8082/joboverview

代码语言:javascript
复制
{
    "running": [],
    "finished": [
        {
            "jid": "ec16f4cf01192268150c750966cefd0d",
            "name": "Flink Java Job at Thu Sep 21 10:52:09 IST 2017",
            "state": "FINISHED",
            "start-time": 1505971329989,
            "end-time": 1505971330746,
            "duration": 757,
            "last-modification": 1505971330746,
            "tasks": {
                "total": 3,
                "pending": 0,
                "running": 0,
                "finished": 3,
                "canceling": 0,
                "canceled": 0,
                "failed": 0
            }
        }
    ]
}

Flink历史服务器配置:

代码语言:javascript
复制
#==============================================================================
# HistoryServer
#==============================================================================

# The HistoryServer is started and stopped via bin/historyserver.sh (start|stop)

# Directory to upload completed jobs to. Add this directory to the list of
# monitored directories of the HistoryServer as well (see below).
jobmanager.archive.fs.dir: hdfs://<hdfs>:8020/sax/flink/jobmanager

# The address under which the web-based HistoryServer listens.
historyserver.web.address: localhost

# The port under which the web-based HistoryServer listens.
historyserver.web.port: 8082

# Comma separated list of directories to monitor for completed jobs.
historyserver.archive.fs.dir: hdfs://<hdfs>:8020/sax/flink/jobmanager

# Interval in milliseconds for refreshing the monitored directories.
historyserver.archive.fs.refresh-interval: 10000
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-22 07:58:43

你链接的Flink网站的第一行是:

Flink有一个历史服务器,可用于在关闭相应的Flink集群后查询已完成作业的统计信息()。

其中还指出

HistoryServer允许您查询已被JobManager归档的已完成作业的状态和统计信息。

现在,我看到,您还可以访问使用"localhost:8081/joboverview“访问的监视api,如果您只想访问运行中的作业,您可以使用”/joboverview/运行“uri访问它们。

您可以在这里的监测API链接上找到更多信息。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46340255

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档