dse add-node

For DSE Multi-Instance, simplifies adding and configuring a node on a host machine. When optional parameters are absent, the default values remain unchanged.

The user running the command must have permissions for writing to the directories that DSE uses, or use sudo.

Restriction: DSE Multi-Instance commands are supported only on package installations.


dse add-node -n <nodeId>
[--advrep-directory <advrepdirectory>
[--dsefs] [--dsefs-directory=<dsefsdatadirectory>]
Syntax conventions Description


Literal keyword.


Not literal.


Variable value. Replace with a valid option or user-defined value.

[ ]

Optional. Square brackets ( [ ] ) surround optional command arguments. Do not type the square brackets.

( )

Group. Parentheses ( ( ) ) identify a group to choose from. Do not type the parentheses.


Or. A vertical bar ( | ) separates alternative elements. Type any one of the elements. Do not type the vertical bar.


Repeatable. An ellipsis ( ... ) indicates that you can repeat the syntax element as often as required.

'<Literal string>'

Single quotation ( ' ) marks must surround literal strings in CQL statements. Use single quotation marks to preserve upper case.

{ <key>:<value> }

Map collection. Braces ( { } ) enclose map collections or key value pairs. A colon separates the key and the value.


Set, list, map, or tuple. Angle brackets ( < > ) enclose data types in a set, list, map, or tuple. Separate the data types with a comma.


End CQL statement. A semicolon ( ; ) terminates all CQL statements.

[ -- ]

Separate the command line options from the command arguments with two hyphens ( -- ). This syntax is useful when arguments might be mistaken for command line options.

' <<schema> ... </schema> >'

Search CQL only: Single quotation marks ( ' ) surround an entire XML schema declaration.


Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrconfig files.

New node configuration options:

-n=nodeId, --node-id=nodeId

Required. For DSE Multi-Instance, the alphanumeric node name for the new node. The specified node name is automatically prepended with dse- so that the resulting node ID is dse-nodeId. For example, if you specify node1, the resulting node name is dse-node1.


Optional. The DSE Advanced Replication data directory.

Default: </var/lib/dse-nodeId/advrep>


Enable DSE Analytics.


Optional. The CDC raw data directory.

Default: /var/lib/dse-nodeId/cdc_raw


Optional. The name of the DataStax Enterprise cluster that the new node belongs to. Only non-whitespace values are supported.


Optional. The number of cores.


Optional. The commit log directory.

Default: /var/lib/dse-nodeId/commitlog


Optional. The data center placement.


Optional. The root directory for storing data.

Default: /var/lib/dse-nodeId/data


Optional. Enable DSEFS.


Optional. The DSEFS data directory.

Default: /var/lib/dse-nodeId/dsefs


Optional. Enable DSE Graph.


Optional. The log directory for Hadoop logs.

Default: logs-directory/hadoop


Optional. Send dse add-node option descriptions to standard output.


Optional. The hints directory.

Default: /var/lib/<dse-nodeId>/hints


Optional. The DSE JMX metrics monitoring port.


Optional. The IP address or hostname that DSE binds to when connecting to other nodes.


Optional. The root directory for all of the logs.

Default: /var/log/<dse-nodeId>


Optional. The Java heap size. If you omit MB the size is interpreted as megabytes.


Optional. The number of tokens.


The log directory for Pig logs.

Default: <logs-directory>/pig


Optional. The rack placement.


Optional. The IP address or hostname that DSE binds to for RPC requests.


Optional. The saved caches directory.

Default: /var/lib/<dse-nodeId>/saved_caches


Optional. Enable DSE Search.


Optional. A comma-separated list of IP addresses of the nodes to be used as seed nodes.


Optional. The local directory for Spark Worker.

Default: /var/lib/`dse-nodeId/spark/rdd`


Optional. The log directory for Spark Worker.

Default: /var/log/<dse-nodeId>/spark/worker


Optional. The maximum number of cores used by Spark executors.


Optional. The data directory for Spark Worker.

Default: /var/lib/<dse-nodeId>/spark/worker


Optional. The maximum amount of memory used by Spark executors. Specify unit of measure with k (kilobytes), m (megabytes), g (gigabytes).


Optional. The log directory for tomcat logs.

Default: <logs-directory>/tomcat


Optional. The UNIX group that owns the node configuration.

Default: cassandra

--unix-username=username ::+ Optional. The UNIX user that owns the node configuration.

+ Default: cassandra


Add node1

dse add-node node1

The dse-node1 is created on the local machine.

Add a node that will join the cluster payroll on startup

dse add-node payrollnode --cluster payroll --listen-address
--rpc-address --seeds

The payrollnode is created with the specified configuration options.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com