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 Search 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
    Transactional nodes.
    HADOOP_ENABLED=0
    SOLR_ENABLED=0
    SPARK_ENABLED=0
    BYOH nodes
    A Cassandra node that runs DSE Analytics with a separate Hadoop cluster from a vendor other than DataStax.
    HADOOP_ENABLED=0
    SOLR_ENABLED=0
    SPARK_ENABLED=0
    DSE Hadoop nodes
    Spark only and Spark + Integrated Hadoop (DSE Hadoop) nodes.
    HADOOP_ENABLED=1
    SOLR_ENABLED=0
    SPARK_ENABLED=0
    DSE Search nodes
    DSE Search (DataStax Enterprise Search) simplifies using search applications for data that is stored in a Cassandra database.
    SOLR_ENABLED=1
    HADOOP_ENABLED=0
    SPARK_ENABLED=0
    Spark nodes

    DSE Analytics with Spark. Spark is the default mode when you start an analytics node in a packaged installation.

    SearchAnalytics nodes (experimental)
    An integrated DSE SearchAnalytics cluster allows analytics jobs to be performed using search queries.
    SPARK_ENABLED=1
    SOLR_ENABLED=1
    HADOOP_ENABLED=0
  2. Start DataStax Enterprise and the DataStax Agent:
    $ sudo service dse start
    $ sudo service datastax-agent start
  3. To check if your cluster is up and running:
    $ nodetool status
    On Enterprise Linux systems, the DataStax Enterprise service runs as a Java process.