# ==============================================================================
# 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: file:///tmp/completed-jobs/
# The address under which the web-based HistoryServer listens.
# historyserver.web.address: 0.0.0.0
# 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: file:///tmp/completed-jobs/
# Interval in milliseconds for refreshing the monitored directories.
historyserver.archive.fs.refresh-interval: 10000
1条答案
按热度按时间eimct9ow1#
您可以通过配置和运行历史服务器来实现这一点。
在flink-conf.yaml中,您将找到历史服务器的一个部分。为了在本地进行测试,我尝试了以下设置:
我创造了
/tmp/completed-jobs
,重新启动了集群,并启动了历史服务器,之后我可以在上看到已完成的作业http://localhost:8082
(html)和http://localhost:8082/jobs/overview
(json)。有关api的更多信息,请参阅可用请求列表。