Starting DataStax Enterprise as a service

Starting the DataStax Enterprise service when DataStax Enterprise was installed from the DataStax Installer with the Services option or from a package.

Packaged installations provide start-up scripts in /etc/init.d for starting DataStax Enterprise as a service.

For Cassandra-only nodes in mixed-workload clusters or BYOH nodes, skip step 1.

The following entries set the type of node:
  • HADOOP_ENABLED=1 - Designates the node as a DSE Hadoop node and starts the Hadoop Job Tracker and Task Tracker services.
  • SOLR_ENABLED=1 - Starts the node as DSE Enterprise Search/Solr node.
  • SPARK_ENABLED=1 - Starts the node as DSE Enterprise Spark node.
Note: No entry is the same as disabling it.

Procedure

  1. Edit the /etc/default/dse file, and then edit the appropriate line in this file, depending on the type of node you want:
    • Cassandra nodes:
      HADOOP_ENABLED=0
      SOLR_ENABLED=0
      SPARK_ENABLED=0
    • BYOH nodes:
      HADOOP_ENABLED=0
      SOLR_ENABLED=0
      SPARK_ENABLED=0

      BYOH node run in Cassandra mode.

    • DSE Hadoop nodes:
      HADOOP_ENABLED=1
      SOLR_ENABLED=0
      SPARK_ENABLED=0
    • Solr nodes:
      SOLR_ENABLED=1
      HADOOP_ENABLED=0
      SPARK_ENABLED=0
    • Spark nodes:
      SPARK_ENABLED=1
      HADOOP_ENABLED=0
      SOLR_ENABLED=0
  2. Start DataStax Enterprise and the DataStax Agent:
    $ sudo service dse start
    $ sudo service datastax-agent start
  3. To verify if your cluster is up and running:
    $ nodetool status
    On Enterprise Linux systems, the DataStax Enterprise service runs as a java process.