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>
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
<`Italics>` |
Variable value. Replace with a valid option or user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
|
Set, list, map, or tuple.
Angle brackets ( |
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrconfig files. |
- 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