dsetool write_resource

Uploads the specified search index config or schema.

Restriction: Command is supported only on nodes with DSE Search workloads.

Resource files are stored internally in the database. You can configure the maximum resource file size or disable resource upload with the resource_upload_limit option in dse.yaml.

Supports DSE authentication with [-l username -p password].

Synopsis

dsetool write_resource keyspace_name.table_name name=res_filename file=path_to_file_to_upload
keyspace_name.table_name

Required. The keyspace and table names of the search index. Keyspace and table names are case-sensitive. Enclose names that contain uppercase in double quotation marks.

res_filename

The name of the search index resource file to upload.

file

The file path of the file to upload.

Examples

To write the resource:

dsetool write_resource demo.health_data stopwords.xml

To specify the uploaded resource file and the path to the resource file:

dsetool write_resource demo.health_data name=ResourceFile.xml file=/myPath1/myPath2/schemaFile.xml

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