bin/fusion

For every server in a Fusion deployment, the script fusion/bin/fusion is used to start, stop, and check the status of the Fusion instance running on that server.

Start Fusion

Run the script fusion/bin/fusion with the argument start:

$ cd /path/to/fusion
$ ./bin/fusion start
2016-10-04 18:52:04Z Starting Fusion ZooKeeper on port 9983
2016-10-04 18:52:14Z Starting Fusion Solr on port 8983
2016-10-04 18:52:39Z Starting Fusion Spark Master on port 8766
2016-10-04 18:52:39Z Starting Fusion Spark Worker on port 8769
2016-10-04 18:52:39Z Starting Fusion API Services on port 8765
2016-10-04 18:52:45Z Starting Fusion Connectors on port 8984
2016-10-04 18:52:50Z Starting Fusion UI on port 8764

Check the status of Fusion

Run the script fusion/bin/fusion with the argument status:

$ cd /path/to/fusion
$ ./bin/fusion status
2016-10-04 20:14:43Z process 2525 from pid file /home/ubuntu/fusion-2.4.1/var/connectors/connectors.pid is running
2016-10-04 20:14:43Z process 2230 from pid file /home/ubuntu/fusion-2.4.1/var/api/api.pid is running
2016-10-04 20:14:43Z process 1962 from pid file /home/ubuntu/fusion-2.4.1/var/spark-master/spark-master.pid is running
2016-10-04 20:14:43Z process 2072 from pid file /home/ubuntu/fusion-2.4.1/var/spark-worker/spark-worker.pid is running
2016-10-04 20:14:43Z process 2708 from pid file /home/ubuntu/fusion-2.4.1/var/ui/ui.pid is running
2016-10-04 20:14:43Z process 1793 from pid file /home/ubuntu/fusion-2.4.1/var/solr/solr.pid is running
2016-10-04 20:14:43Z process 1644 from pid file /home/ubuntu/fusion-2.4.1/var/zookeeper/zookeeper.pid is running

Stop Fusion

Run the script fusion/bin/fusion with the argument stop:

$ cd /path/to/fusion
$ ./bin/fusion stop
2016-10-04 20:18:30Z Stopping Fusion UI on port 8764
2016-10-04 20:18:42Z Stopping Fusion Connectors on port 8984
2016-10-04 20:18:53Z Stopping Fusion API Services on port 8765
2016-10-04 20:19:05Z Stopping Fusion Spark Worker on port 8769
2016-10-04 20:19:10Z Stopping Fusion Spark Master on port 8766
2016-10-04 20:19:15Z Stopping Fusion Solr on port 8983
2016-10-04 20:19:27Z Stopping Fusion ZooKeeper on port 9983

Troubleshooting

The Java Virtual Machine Process Status Tool utility at /usr/bin/jps is useful for reporting on all Fusion processes reported by script fusion/bin/fusion:

$ jps
1644 QuorumPeerMain   (ZK)
1793 start.jar        (solr)
1962 SparkAgent       (spark)
2072 SparkAgent
2230 start.jar        (api)
2389 SparkWorker
2410 SparkMaster
2525 start.jar        (connectors)
2708 start.jar        (ui)
3760 SparkDriver
4431 Jps

The process QuorumPeerMain is the ZooKeeper process used by Fusion. The 4 start.jar processes are Fusion’s Solr, API Services, Connectors, and UI. Spark SparkMaster and SparkWorker processes are used for Fusion signals processing and SparkAgent processes are used for the Spark shell.

If the path/to/fusion/bin/fusion script doesn’t run, or if it fails to start all services, see the Troubleshooting topic or the knowledge base for help.