Start and Stop Fusion

This topic explains how to start and stop Fusion.

Unix

This section describes starting and stopping Fusion on Unix.

Start Fusion

All Fusion start scripts must be executed by a user who has permissions to read and write to the directories where Fusion is installed. These scripts don’t need to be run as root (or sudo), nor should they be. Use a suitable ID, or create a new one, and then ensure that it owns the directory where Fusion resides, (e.g. /opt/lucidworks).

Give the commands that follow from the directory fusion/3.1/bin.

To start all required services

./fusion start

To start services individually
  • Fusion API Services:

    ./api start

  • Connectors Services:

    ./connectors start

  • Solr:

    ./solr start

  • Spark Master:

    ./spark-master start

  • Spark Worker:

    ./spark-worker start

  • Fusion UI:

    ./ui start

  • ZooKeeper:

    ./zookeeper start

For information about default ports, see Default Ports.

Run Fusion In The Foreground

To run Fusion or any of its services in the foreground, use the run command-line argument in place of start.

Stop Fusion

To stop Fusion services

To stop Fusion or any of its services, use the command above with the stop command-line argument in place of start, for example:

./connectors stop

Ubuntu Upstart Scripts

Under Ubuntu 12.04 LTS or newer we support Upstart for process management. This requires Fusion to be installed in the /opt/lucidworks/ directory.

To configure upstart, run the following commands:

$ cd init/upstart
$ sudo bash install.sh

If this complains with no JAVA_HOME set, replace sudo with sudo -E. Then you can use the service command to control the server:

$ sudo service fusion-solr start
$ sudo service fusion-api start
$ sudo service fusion-connectors start
$ sudo service fusion-ui start

and similarly use stop and status.

Logfiles for Fusion services are found in directories under fusion/3.1.x/var/log.

Windows

This section describes starting and stopping Fusion on Windows.

Start Fusion

All Fusion start scripts must be executed by a user who has permissions to read and write to the directories where Fusion is installed. Ensure that such a user owns the directory where Fusion resides.

Give the commands that follow from the directory fusion{fusion_version}\bin.

To start all required services
  • fusion.cmd start (Start all Fusion services as Java processes)

  • start-services.cmd (Start all Fusion services as Windows services)

To start specific services as Java processes
  • Fusion API Services:

    api.cmd start

  • Connectors Services:

    connectors.cmd start

  • Solr:

    solr.cmd start

  • Spark Master:

    spark-master.cmd start

  • Spark Worker:

    spark-worker.cmd start

  • Fusion UI:

    ui.cmd start

  • Zookeeper:

    zookeeper.cmd start

For information about default ports, see Default Ports.

Run Fusion In The Foreground

To run Fusion or any of its services in the foreground, use the run command-line argument in place of start, for example:

connectors.cmd run

Stop Fusion

To stop all Fusion services
  • fusion.cmd stop (Stop all Fusion services, if they are running as Java processes)

  • stop-services.cmd (Stop all Fusion services, if they are running as Windows services)

To stop a specific service running as a Java process

To stop a specific Fusion service that is running as a Java process, use the command above with the stop command-line argument in place of start, for example:

connectors.cmd stop

Access Fusion after startup

After Fusion services have started, you can open the Fusion UI in a web browser at http://localhost:8764/ (replace localhost with your server name or IP address if necessary). The first time you access Fusion, you must set the password for the user admin and agree to the Fusion Licensing Agreement (which contains terms of service). This is followed by an optional registration step. After this, Fusion displays the Fusion Launcher (the main UI page).

If you can’t access the system, see the Troubleshooting topic. Checking System State shows how to inspect Fusion services.