Datastax administration Commands ( Part 6)






                                                                 


Start DSE service : sudo service dse start
Stop DSE service : sudo service dse stop

Configuration File Location :
           /etc/dse/cassandra/cassandra.yaml
           /etc/default/dse
           /etc/dse/cassandra/cassandra-env.sh
           /etc/dse/cassandra/cassandra-rackdc.properties

## Show information of cluster
        nodetool status

## Show information about nodes and ring
        nodetool ring

## Repair one or more table
         nodetool repair

## Cleans up keyspaces and partition keys no longer belonging to a node.
         nodetool cleanup

## Flushes one or more tables from the memtable
         nodetool flush

## List files from backup data directories :
        find /mnt/cassandra/data/*/*/backups/* -type f -ls

## Remove files from backup data directories :
        find /mnt/cassandra/data/*/*/backups/* -type f -delete

## Retrieve the list of tokens associated with each node's IP:
      nodetool ring | grep ip_address_of_node | awk '{print $NF ","}' | xargs


## Remove data from the default directories
       sudo rm -rf /var/lib/cassandra/data/*
       sudo rm -rf /var/lib/cassandra/commitlog/*
       sudo rm -rf /var/lib/cassandra/saved_caches/*
       sudo rm -rf /var/lib/cassandra/hints/* 


##  Check Datastax configuration parameters from dse default configuration file :

cat /etc/default/dse | grep -E 'GRAPH_ENABLED=|SOLR_ENABLED='
cat /etc/dse/cassandra/cassandra-rackdc.properties |grep -E 'dc=|rack='
cat /etc/dse/cassandra/cassandra-env.sh |grep JVM_OPTS=
cat /etc/dse/graph/gremlin-console/conf/remote.yaml | grep -E 'hosts:|port:'
cat /etc/dse/cassandra/cassandra.yaml |grep incremental_backups
cat /etc/dse/graph/gremlin-console/conf/remote.yaml | grep -E 'hosts:|port:'
cat /etc/dse/cassandra/cassandra-env.sh | grep -E 'MAX_HEAP_SIZE=|HEAP_NEWSIZE='
cat /etc/dse/cassandra/cassandra-rackdc.properties


cat /etc/dse/cassandra/cassandra.yaml | grep -E 'cluster_name:|seeds:|listen_address:|rpc_address:|start_native_transport:|native_transport_port:|hints_directory:|data_file_directories:|commitlog_directory:|initial_token:|num_tokens:|endpoint_snitch:'



Comments

  1. mobile legends hack apk

    mobilelegendshack diamond



    Mobile legends

    ReplyDelete

  2. homescapes cheats homescapes cheats .
    Click here for homescapes cheats

    ReplyDelete

  3. Free Fire Hack
    Free Fire Hack
    https://sites.google.com/view/update-nowgarena-free-fire-

    ReplyDelete

Post a comment

Popular posts from this blog

Datastax Error : Cannot start node if snitch's data center (dc1) differs from previous data center (dc2)

Datastax Error : Cassandra - Saved cluster name Test Cluster != configured name

Configure Nagios plugin " check_logfiles " for scanning log file

Popular posts from this blog

Datastax Error : Cannot start node if snitch's data center (dc1) differs from previous data center (dc2)

Datastax Error : Cassandra - Saved cluster name Test Cluster != configured name

Configure Nagios plugin " check_logfiles " for scanning log file