DSE Multi-Instance commands
Where is the cassandra.yaml
file?
The location of the cassandra.yaml
file depends on the type of installation:
Installation Type | Location |
---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
Commands to configure and use multiple DataStax Enterprise nodes on a single host machine.
DSE Multi-Instance commands are supported only on package installations. |
sudo dse dse-nodeId subcommand [command_arguments]
sudo dsetool dse-nodeId command [command_arguments]
-
For example:
To run the
dsetool ring
command on a node nameddse-node1
in a cluster on a DSE Multi-Instance host machine:sudo dse dse-node1 dsetool ring
To run the
dsetool ring
command without DSE Multi-Instance:sudo dsetool ring
-
dse nodeID
[command_arguments
]
dse add-node
sudo dse add-node [command_arguments]
To show the command line help for any command:
sudo dse add-node --help
The following table describes the command arguments for the dse add-node
command.
When optional parameters are absent, the default value remains unchanged.
With DSE Multi-Instance, the dse add-node command arguments define some properties that are otherwise set in the cassandra.yaml
file.
Where is the cassandra.yaml
file?
The location of the cassandra.yaml
file depends on the type of installation:
Installation Type | Location |
---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
When an optional parameter is omitted, the default value is not changed.
Command arguments | Description |
---|---|
|
Adds the specified node to an existing DataStax Enterprise cluster, where the specified The specified node name is automatically prepended with |
|
The name of the DataStax Enterprise cluster that the node belongs to. Only non-whitespace values are supported. |
|
The JMX port for the node. |
|
The IP address or hostname that Cassandra binds to when connecting to other nodes. |
|
The IP address or hostname that Cassandra binds to for RPC requests. |
|
The number of Cassandra cores. |
|
Set the Java heap size.
The size must be specified in megabytes.
If you omit [source,bash] ---- dse add-node -n node1 --max-heap-size=800 ---- [source,bash] ---- dse add-node -n node1 --max-heap-size=800MB ---- |
|
The root directory for storing data on each node.
Default: |
|
The hints directory for each node.
Default: |
|
The commit log directory for each node.
Default: |
|
The CDC raw data directory for the node.
Default: |
|
The saved caches directory for each node.
Default: |
|
The root directory for all of the logs for each node.
Default: |
|
The log directory for tomcat logs.
Default: |
|
The log directory for Hadoop logs.
Default: |
|
The log directory for Hive logs.
Default: |
|
The log directory for Pig logs.
Default: |
|
The log directory for Mahout logs.
Default: |
|
The data directory for Spark Worker for the node.
Default: |
|
The maximum number of cores used by Spark executors. |
|
The maximum amount of memory used by Spark executors. Specify unit of measure with k (kilobytes), m (megabytes), g (gigabytes). |
|
The local directory for Spark Worker for each node.
Default: |
|
The log directory for Spark Worker for the node.
Default: |
|
The UNIX user that owns the node configuration.
Default: |
|
The UNIX group that owns the node configuration.
Default: |
|
The log directory for Tomcat server logs.
Default: |
|
|
|
A comma-separated list of IP addresses of the nodes to be used as seed nodes. |
|
Enable DSE Search on the new node. |
|
Enable DSE Analytics (Spark) on the new node. |
|
Enable DSE Graph on the new node. |
|
Enable CFS without Spark on the new node. |
|
The number of tokens on the new node. Specify a number. |
|
Enable DSEFS on the new node. |
|
Send command descriptions to standard output. |
dse list-nodes
sudo dse list-nodes
This command takes no arguments and lists the nodes that are configured for the DSE Multi-Instance host machine.
Since the default DataStax Enterprise node is called dse
, the dse list-nodes
command always returns at least the dse
node, even if nodes were not added with the dse add-node
command.
dse remove-node
Synopsis
sudo dse remove-node nodeId [--yes]
To show the command line help for any command:
sudo dse remove-node --help
The following table describes the command arguments for the dse remove-node
command.
Command arguments | Description |
---|---|
|
Required.
Removes the specified node to an existing DataStax Enterprise cluster, where the specified |
|
Confirm node deletion.
Files are deleted and are not recoverable.
If you do not specify |
|
Send command descriptions to standard output. |