Storm常用的基本命令有哪些

发布时间:2021-11-11 17:21:49 作者:柒染
来源:亿速云 阅读:127

这篇文章给大家介绍   Storm常用的基本命令有哪些,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

This page describes all the commands that are possible with the “storm” command line client. To learn how to set up your “storm” client to talk to a remote cluster, follow the instructions in Setting up development environment.


jar

 Syntax: storm jar topology-jar-path class ...

Runs the main method of class with the specified arguments. The storm jars and configs in ~/.storm are put on the classpath. The process is configured so thatStormSubmitter will upload the jar at topology-jar-path when the topology is submitted.

kill

Syntax: storm kill topology-name [-w wait-time-secs]

Kills the topology with the name topology-name. Storm will first deactivate the topology’s spouts for the duration of the topology’s message timeout to allow all messages currently being processed to finish processing. Storm will then shutdown the workers and clean up their state. You can override the length of time Storm waits between deactivation and shutdown with the -w flag.

activate

Syntax: storm activate topology-name

Activates the specified topology’s spouts.

激活指定的topology的Spout

deactivate

Syntax: storm deactivate topology-name

Deactivates the specified topology’s spouts.

使指定的topology的Spout失效

rebalance

Syntax: storm rebalance topology-name [-w wait-time-secs]

Sometimes you may wish to spread out where the workers for a topology are running. For example, let’s say you have a 10 node cluster running 4 workers per node, and then let’s say you add another 10 nodes to the cluster. You may wish to have Storm spread out the workers for the running topology so that each node runs 2 workers. One way to do this is to kill the topology and resubmit it, but Storm provides a “rebalance” command that provides an easier way to do this.

rebalance:

假设目前你希望去伸展正在运行之中的topology,举个例子来说,你有10个节点,并且在每一个节点之中都运行了四个Workers,这个时候如果你再加上10个节点到这个集群上去,你希望每一个节点之上都运行2个Workers, 一种方式 是你手动的去杀灭这个 topology,并且重新的去提交他,但是 Storm也提供了一个rebalance的命令用来保证轻松的完成这个工作。

Rebalance will first deactivate the topology for the duration of the message timeout (overridable with the -w flag) and then redistribute the workers evenly around the cluster. The topology will then return to its previous state of activation (so a deactivated topology will still be deactivated and an activated topology will go back to being activated).

repl

Syntax: storm repl

Opens up a Clojure REPL with the storm jars and configuration on the classpath. Useful for debugging.

打开一个Clojure的REPL,利用Storm的jars 并且配置这个ClassPath地址,用于诊断debuging。

classpath

Syntax: storm classpath

Prints the classpath used by the storm client when running commands.

打印出来ClassPath。并且通过Strom的Clinet 并且运行这个命令

localconfvalue

Syntax: storm localconfvalue conf-name

打印一下当前本地文件之中的Conf的值,这个本地的文件为/bin/storm.yaml

Prints out the value for conf-name in the local Storm configs. The local Storm configs are the ones in ~/.storm/storm.yaml merged in with the configs in defaults.yaml.

remoteconfvalue

调用远程的Conf值。

Syntax: storm remoteconfvalue conf-name

Prints out the value for conf-name in the cluster’s Storm configs. The cluster’s Storm configs are the ones in $STORM-PATH/conf/storm.yaml merged in with the configs indefaults.yaml. This command must be run on a cluster machine.

nimbus

启动Storm的nimbus进程

Syntax: storm nimbus

Launches the nimbus daemon. This command should be run under supervision with a tool like daemontools or monit. See Setting up a Storm cluster for more information.

supervisor

Syntax: storm supervisor

Launches the supervisor daemon. This command should be run under supervision with a tool like daemontools or monit. See Setting up a Storm cluster for more information.

ui

通过Storm命令来启动ui

Syntax: storm ui

Launches the UI daemon. The UI provides a web interface for a Storm cluster and shows detailed stats about running topologies. This command should be run under supervision with a tool like daemontools or monit. See Setting up a Storm cluster for more information.

drpc

Syntax: storm drpc

启动一个DRPC的命令

Launches a DRPC daemon. This command should be run under supervision with a tool like daemontools or monit. See Distributed RPC for more information.

关于   Storm常用的基本命令有哪些就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

推荐阅读:
  1. mysql常用基本命令介绍
  2. git的基本命令有哪些

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

storm

上一篇:redis特性是什么呢

下一篇:Django中的unittest应用是什么

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》