The dse commands
Table of dse commands for using DataStax Enterprise
You can issue the dse commands listed in this document from the bin directory of the DataStax Enterprise Linux installation or from the command line in a packaged or AMI distribution.
DSE commands
Synopsis
$ dse [-u username -p password] [-v ] | cassandra [options ] | hadoop [options ] | hive [options ] | mahout [options ] | pig [options ] | sqoop [options ]
Synopsis when using secure
JMX
$ dse [-u username] [-a jmx_username] [-v ] | cassandra [options ] | hadoop [options ] | hive [options ] | mahout [options ] | pig [options ] | sqoop [options ]
For commands that require authentication credentials or JMX credentials, issue the command and
subcommands with only the Cassandra user name and/or secure JMX user name. When a
.dserc file does not exist, you are prompted to enter the passwords on the
next line. For example:
$ dse -u cassandra hadoop fs -ls /prompts you to enter the password to authenticate against the configured Cassandra authentication schema.
This table describes the key dse commands:
Command | Option | Description | Example |
---|---|---|---|
dse | -v | Send the DSE version number to standard output. | none |
dse cassandra | Start up a real-time Cassandra node in the background. | link to example | |
dse cassandra | -s | Start up a DSE Search/Solr node in the background. | link to example |
dse cassandra | -s -Ddse.solr.data.dir=path | Use path to store Solr data. | link to example |
dse cassandra | -t | Start up an analytics node in the background. | link to example |
dse cassandra | -t -j | Start up an analytics node as the job tracker. | link to example |
dse cassandra | -f | Start up a real-time Cassandra node in the foreground. | none |
dse cassandra | -f -t | Start up an analytics node in the foreground. | none |
dse cassandra | -f -s | Start up a DSE Search/Solr node in the foreground. | none |
dse cassandra-stop | -p pid | Stop the DataStax Enterprise process number pid. | link to example |
dse cassandra | -Dcassandra.replace_address | After replacing a node, replace the IP address in the table. | none |
dse hadoop | version | Sends the version of the Hadoop component to standard output. | none |
dse hadoop | fs options | Invoke the Hadoop FileSystem shell. | link to example |
dse hadoop | fs -help | Send Apache Hadoop fs command descriptions to standard output. | link to example |
dse hive | Start the Hive client. | link to example | |
dse hive | --service name | Start Hive by connecting through the JDBC driver. | link to example |
dse list_subranges | options | List subranges of data in a keyspace. | link to documentation |
dse mahout | Describe Mahout commands. | link to example | |
dse mahout | mahout command options | Run the Mahout command. | link to example |
dse mahout hadoop | hadoop command options | Add Mahout classes to classpath and execute the hadoop command. | link to example |
dse pig | Start Pig. | link to example | |
dse sqoop | -help | Send Apache Sqoop command line help to standard output. | link to example |
Hadoop, hive, mahout, and pig commands must be issued from an analytics node. The hadoop fs options, which DSE Analytics supports with one exception (-moveToLocal), are described in the HDFS File System Shell Guide on the Apache Hadoop web site. DSE Analytics has not yet implemented the -moveToLocal option, but you can use the -copyToLocal.