Copying data from CFS to DSEFS

When migrating data from the Cassandra File System (CFS) to the DSE File System (DSEFS), use the dse hadoop fs -cp command to copy data from CFS to DSEFS:

  1. Enable DSEFS if you haven’t done so already.

  2. Get the path to your new DSEFS directory.

    If necessary, create the new location for the data in DSEFS. The following example creates a DSEFS directory named /test on the local node:

    dse hadoop fs -mkdir dsefs:///test
  3. Copy the data from CFS to DSEFS, specifying the node and paths to the original CFS directory and the new DSEFS directory.

    This command works recursively, so you only need to provide the path to the top level directory.

    The following generic example copies data from a top-level directory named /test:

    dse hadoop fs -cp cfs://NODE_HOSTNAME_OR_IP/test/* dsefs://NODE_HOSTNAME_OR_IP/test

    For a more specific example, the following command migrates the deprecated hivemetastore directory from CFS to DSEFS:

    INSTALL_DIRECTORY/bin/dse hadoop fs -cp cfs://NODE_HOSTNAME_OR_IP/user/spark/warehouse/ dsefs://NODE_HOSTNAME_OR_IP/user/spark/warehouse/
  4. Verify that the data exists in the new DSEFS location using dse hadoop fs -ls.

    For example, using the /test directory:

    dse hadoop fs -ls dsefs:///test

    The output depends on the data you copied.

    Found 2 items
    drwxrwxrwx   - none none          0 2016-11-23 19:02 dsefs:///test/a
    drwxrwxrwx   - none none          0 2016-11-23 19:02 dsefs:///test/b
  5. If you are migrating from CFS to DSEFS and you no longer need the original CFS data, you can remove the cfs and cfs_archive keyspaces:

    DROP KEYSPACE cfs
    DROP KEYSPACE cfs_archive

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use |  Manage Privacy Choices

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: Contact IBM