Copying data from CFS to DSEFS

Use the dse hadoop fs -cp command to copy data from CFS to DSEFS. This command works recursively.

Procedure

  1. If necessary, create the new location for the data in DSEFS.

    $ dse hadoop fs -mkdir dsefs:///test
  2. Copy the data from CFS to DSEFS.

    $ dse hadoop fs -cp cfs://hostname/test/* dsefs:///test
  3. Verify that the data exists in the new DSEFS location using dse hadoop fs -ls.

    $ dse hadoop fs -ls dsefs:///test
    $ 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

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