Apache Druid提供了启动不同集群的脚本:
但是却并没有提供集群stop的脚本。
那么怎么停止集群呢?
-
第一种方法就是比较简单粗暴:
直接 ps -ef | grep xxx ,获取pid之后直接kill。 -
第二种方法就是:
$ bin/service --help
Unknown option: help
usage: bin/service (--restart <service> | --tail <service> | --down) [-d <var dir>]
bin目录里提供了service 脚本,我们直接执行:
bin/service --down
然后Druid集群就可以关闭了。