Heron Explorer简介
Heron Explorer is a CLI tool that you can use to gain insight into a Heron installation, including:
- which clusters are currently running in the installation
- information about a given topology’s components (spouts and bolts)
- metrics for a topology
- the containers in which a topology is running
- the topologies running in a given cluster, role, or environment
The Heron Explorer vs. Heron CLI
Heron Explorer和Heron UI有两点重要的区别。第一点:Heron Explorer不同于heron CLI,其需要基于heron tracker的启动。第二点:Heron Explorer对集群的操作是只读的,命令是面向对象的。而不是向CLI中submit,activate,deactivate和kill的行为操作。
Heron Explorer文档
见Heron的官方文档:
Heron Explorer在Heron单节点的运行情况
注意:使用heron explorer需要基于heron tracker的启动。
Topologies
yitian@heron01:~$ heron-explorer topologies local
[2018-04-03 05:41:52 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
Topologies running in cluster 'local'
role env topology
------ ------- -----------------
yitian default WordCountTopology
[2018-04-03 05:41:52 +0000] [INFO]: Elapsed time: 0.078s.
Clusters
yitian@heron01:~$ heron-explorer clusters
[2018-04-03 05:42:44 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
Available clusters:
local
[2018-04-03 05:42:44 +0000] [INFO]: Elapsed time: 0.019s.
Components
yitian@heron01:~$ heron-explorer components local/yitian/default WordCountTopology
[2018-04-03 05:44:05 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
type name parallelism input output
------ -------- ------------- ------- --------
spout word 1 - consumer
bolt consumer 1 word -
[2018-04-03 05:44:06 +0000] [INFO]: Elapsed time: 0.081s.
Metrics
yitian@heron01:~$ heron-explorer metrics local/yitian/default WordCountTopology[2018-04-03 05:45:19 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
'word' metrics:
container id jvm-uptime-secs jvm-process-cpu-load jvm-memory-used-mb emit-count ack-count fail-count
------------------ ----------------- ---------------------- -------------------- ------------ ----------- ------------
container_1_word_1 1553 0.684416 169.167 3.8514e+08 0 0
'consumer' metrics:
container id jvm-uptime-secs jvm-process-cpu-load jvm-memory-used-mb execute-count ack-count fail-count
---------------------- ----------------- ---------------------- -------------------- --------------- ----------- ------------
container_1_consumer_2 1554 1.42943 503.2 3.8302e+08 0 0
[2018-04-03 05:45:19 +0000] [INFO]: Elapsed time: 0.050s.
Containers
yitian@heron01:~$ heron-explorer containers local/yitian/default WordCountTopology
[2018-04-03 05:46:38 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
container host port pid #bolt #spout #instance
----------- ------- ------ ----- ------- -------- -----------
1 heron01 39915 5222 1 1 2
[2018-04-03 05:46:38 +0000] [INFO]: Elapsed time: 0.014s.