Managing the location of Solr data

Manage where the Solr data files are saved on the server.

Solr has its own set of data files. Like Cassandra data files, you can control where the Solr data files are saved on the server. By default, the Solr data is saved in cassandra_data_dir/solr.data.

Procedure

  1. Shut down the search node.
  2. Move the solr.data directory to the new location.
  3. Specify the location:
    Option Description
    From the command line
    $ cd install_location
    $ bin/dse cassandra -s -Ddse.solr.data.dir=/solr_data_dir
    In dse.yaml
    solr_data_dir: solr_data_dir
  4. Start the node.

Results

The location change is permanent when set in dse.yaml. The command-line argument must be used consistently or DSE reverts to the default data directory.