Using the DataStax Installer to install on Mac OS X 

Instructions for installing DataStax Enterprise 5.0 using the DataStax Installer on Mac OS X.

Use these instructions for installing DataStax Enterprise using the DataStax Installer on Mac OS X. To install earlier versions, see Installing DataStax Enterprise 5.0.x patch releases.

Important: DataStax Enterprise 5.0 uses Apache Cassandra 3.0 and CQL 3.3.

Prerequisites

  • Mac OS X is supported for development only.
  • Latest version of Oracle Java 8 is recommended.
  • On some versions of Mac OS X, you may need to install readline: easy_install readline.

Also see Recommended production settings and the DataStax Enterprise Reference Architecture white paper.

Hardware requirements
Requirement Minimum Production
CPUs 2 16
Memory 8 GB 24 GB
Data directory 20 GB 200 GB
Commit log directory 20 GB 200 GB
Saved caches directory 20 GB 200 GB
Logs directory 20 GB 200 GB
Production requirements depend on the volume of data and workload.

About the installer

The DataStax installer installs DataStax Enterprise. It does not install OpsCenter or DevCenter. If you select Developer Related Tools during installation, DataStax Studio is installed.

The installer sets some but not all cassandra.yaml parameters. It does not set dse.yaml properties. Set the remaining parameters in the following ways:

Procedure

Note: The latest version of DataStax Enterprise is 5.0.9.
In a terminal window:

  1. Download the installer for your computer from the DataStax download page or use the following command:
    $ curl --user dsa_email_address:password -O https://downloads.datastax.com/enterprise/DataStaxEnterprise-5.0.9-osx-installer.dmg

    The latest version of DataStax Enterprise is 5.0.9. To view the available versions, see the Release Notes.

  2. From the directory where you downloaded the install file, click the DataStaxEnterprise-5.0.9-osx-installer.dmg file.
  3. Double-click the DataStax Enterprise installer.


    The installer launches.



  4. After accepting the License Agreement, select the type of installation:
    • Service Setup
      • No Services: This installation sets up the server as a standalone process.
      • Services and Utilities: This installation sets up the server as a service. It sets up a property (.plist) file to start the service on login.
    • Install Type
  5. Set the installation directory.
  6. Set up the node:
    Node Setup
    Default Interface Network interface for the DataStax Enterprise server.

    Single node clusters: use 127.0.0.0.

    Cluster Name Name of the cluster. You must use the same cluster name for each node in the cluster.
    Seeds All nodes use the seed node list for finding each other and learning the topology of the ring.

    Single node clusters: Set to empty.

    Multiple node clusters: List of seed nodes. Do not make all nodes seed nodes.

    Developer Related Tools Includes the following:
  7. Set up the node type:
    DSE Setup
    DSE Analytics Spark or Spark + Integrated Hadoop (DSE Hadoop).
    DSE Search DSE Search (Solr) simplifies using search applications for data that is stored in a Cassandra database.
    DSE Graph DSE Graph is a graph database for managing, analyzing, and searching highly-connected data.
    DSE Advanced Replication DSE Advanced Replication supports one-way, distributed-data replication from remote clusters that might experience periods of network or internet downtime.
  8. Set up remaining options:

    The available options depend on the type of installation, permissions, and your previous selections.

    Misc Setup
    Update Operating System Update some system packages and dependencies. Does not upgrade or install major components such as Java.
    Start services Select Yes to start all services when the installation is complete, or select No when additional configuration is needed after installation.
    Type of analytics Spark only and Spark + Integrated Hadoop (DSE Hadoop).
    OpsCenter Address Launches OpsCenter in your default browser.
    Run PFC Enable or disable the Preflight check.
  9. Change default cluster settings (Advanced Installations only):
    Ring Options
    Enable Virtual node (vnodes) Enable or disable Virtual nodes.
    Number of tokens Token recommendations for vnodes:
    • Cassandra (transactional) nodes: 128
    • Analytical nodes (Spark): 128
    • Analytical nodes (DSE Hadoop, BYOH): not recommended.
    • Search nodes: 16 or 32
    • DSE Graph: 128 or when used with DSE Search: 16 or 32
    Listen Address cassandra.yaml parameter: listen_address
    RPC Address cassandra.yaml parameter: rpc_address
  10. Change the default directory locations (Advanced Installations only):
    Directory Locations
    Commitlog Directory cassandra.yaml parameter: commitlog_directory
    Saved Caches Directory cassandra.yaml parameter: saved_caches_directory
    Hints Directory cassandra.yaml parameter: hints_directory
    Logs Directory Log data for Cassandra, Spark, Hadoop, Pig, Hive, and Tomcat. See the default file locations for Installer-Services and package installations or Installer-No Services and tarball installations.
  11. Change the default ports (Advanced Installations only):
    Ports
    Storage Port cassandra.yaml parameter: storage_port
    SSL Storage Port cassandra.yaml parameter: ssl_storage_port
    RPC Port cassandra.yaml parameter: rpc_port
  12. In System Configuration, review any warnings about potential issues.
  13. After the installation completes, review the installation logs to verify the installation.
    Note: If you have closed the logs, see Services or No-Services installer locations.

    DataStax Enterprise is ready for additional configuration.

  14. Optional: Single-node cluster installations only:
    1. If DataStax Enterprise is not running, start it from the installation directory:
      $ bin/dse cassandra
      Note: For other start options, see Starting DataStax Enterprise as a stand-alone process.
    2. Verify that DataStax Enterprise is running:
      If using vnodes:
      $ bin/nodetool status
      
      Datacenter: Cassandra
      =====================
      Status=Up/Down
      |/ State=Normal/Leaving/Joining/Moving
      --  Address    Load       Tokens  Owns    Host ID                               Rack
      UN  127.0.0.1  82.43 KB   128     ?       40725dc8-7843-43ae-9c98-7c532b1f517e  rack1
      If using not using vnodes:
      $ bin/nodetool status
      
      Datacenter: Analytics
      =====================
      Status=Up/Down
      |/ State=Normal/Leaving/Joining/Moving
      --  Address         Load       Owns    Host ID                               Token                 Rack
      UN  172.16.222.136  103.24 KB  ?       3c1d0657-0990-4f78-a3c0-3e0c37fc3a06  1647352612226902707   rack1

What's next

The location of the cassandra.yaml file depends on the type of installation:
Installer-Services /etc/dse/cassandra/cassandra.yaml
Package installations /etc/dse/cassandra/cassandra.yaml
Installer-No Services install_location/resources/cassandra/conf/cassandra.yaml
Tarball installations install_location/resources/cassandra/conf/cassandra.yaml
The location of the dse.yaml file depends on the type of installation:
Installer-Services /etc/dse/dse.yaml
Package installations /etc/dse/dse.yaml
Installer-No Services install_location/resources/dse/conf/dse.yaml
Tarball installations install_location/resources/dse/conf/dse.yaml