简体   繁体   中英

Monit can not start thrift

Here's my code below:

check host thrift with address 127.0.0.1
if failed port 9090 type tcp
then exec "/bin/bash -c '/bin/lib/hbase/bin/hbase-daemon.sh start thrift'" 

The first two lines can be executed as I expected, but the last line is executed without error and starting thrift, like doing nothing.

By the way, these command above can be run in bash and the command start thrift as I expected.

I solved this, Monit can not start thrift because the different between environments. Just make sure that the environments required is being set.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM