Skip to content

Instantly share code, notes, and snippets.

##Start zookeeper :
## started with nohup and output directed to zookper-logs.log
nohup bin/zookeeper-server-start config/zookeeper.properties > ~/workspace/logs/zookper-logs.log &
#Stop zookeeper
bin/zookeeper-server-stop
#stop a service(connect, schema register, server etc) using conflunet packge
bin/confluent-stop <service>
@ravi72munde
ravi72munde / cronUnscheduler.java
Created May 4, 2017 10:33
Remove all scheduled jobs/CronTrigger tasks
List < CronTrigger > listCronTrigger = [select Id from CronTrigger LIMIT 150];
If(listCronTrigger.size() > 0) {
For(Integer i = 0; i < listCronTrigger.size(); i++) {
System.abortJob(listCronTrigger[i].Id);
}
}