dse nodesync
The NodeSync service continuous background repair is enabled on a per table basis.
Modifies CQL nodesync property on one or more tables, enables nodesync tracing and monitoring.
|
Tables with NodeSync enabled will be skipped for repair operations run against all or specific keyspaces.
For individual tables, running the |
Synopsis
[dse] nodesync
[(-ca cql_Authprovider | --cql-auth-provider <cql_Authprovider>)]
[(-cp <cql_password> | --cql-password <cql_password>)]
[(-cs | --cql-ssl)]
[(-cu <cql_username> | --cql-username <cql_username>)]
[(-h <cql_host> | --host <cql_host>)]
[help]
[(-jp <jmx_password> | --jmx-password <jmx_password>)]
[(-jpf <jmx_password_file> | --jmx-password-file <jmx_password_file>)]
[(-js | --jmx-ssl)]
[(-ju <jmx_username> | --jmx-username <jmx_username>)]
[(-p <cql_port> | --port <cql_port> )]
subcommand [options]
| Syntax conventions | Description |
|---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
|
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. |
Main options
The following options apply to all nodesync commands.
- -ca, --cql-auth-provider cql_Authprovider
-
CQL auth provider class name.
- -cp, --cql-password cql_password
-
CQL password.
- -cs | --cql-ssl
-
Use SSL for CQL connection.
- -cu, --cql-username cql_username
-
CQL username.
- -h, --host cql_host
-
Connect to the specified remote CQL host.
- help
-
Displays options and usage instructions. Use
nodesync help subcommandfor more information on a specific command.
- -jp, --jmx-password jmx_password
-
JMX password.
- -jpf, --jmx-password-file jmx_password_file
-
Path to JMX password file.
- -js | --jmx-ssl
-
Use SSL for JMX.
- -ju, --jmx-username jmx_username
-
JMX username.
- -p, --port cql_port
-
Connection port for CQL.
- -k, --keyspace keyspace_name
-
Specify a default keyspace for unqualified table names or wildcards in the
table_list.Successfully run
nodesync disableandnodesync enablecommands on alterable keyspaces;system_distributedkeyspace or auser-createdkeyspace. An error results when attempting to run these commands on an unalterable keyspace such assystem_auth.Success example:
nodesync disable -v -k system_distributed "*" Nodesync disabled for system_distributed.nodesync_status Nodesync disabled for system_distributed.backups ... Nodesync disabled for system_distributed.repair_historyError example:
nodesync disable -v -k system_auth "*" Error: Keyspace [system_auth] is not alterable.Use a CQL command to enable or disable nodesync for unalterable keyspaces such as a
system_*keyspace.Example:
ALTER TABLE system_auth.roles WITH nodesync = {'enabled': 'false'};
- --quiet
-
Suppress warning and error messages.
- -v | --verbose
-
Display all messages.
- --
-
Separates table list from the rest of the command.
- table_list
-
Target tables using any of the following methods:
-
Qualified table names:
keyspace_name.table_name. For example,cycling.comments. -
Default keyspace -k option with:
-
Unqualified table names. For example
-k cycling cyclist_alt_stats comments cyclist_races. -
An asterisk in double quotes to select all tables. For example,
-k cycling "*".
-
-
- -n, --nodes node_list
-
Only disable tracing on the listed nodes. Specify the host name or IP address in a comma separated list.
Default: all nodes.
- --quiet
-
Suppresses messages from displaying on
stdout.
Example
Display top-level help
nodesync help
usage: nodesync [(-js | --jmx-ssl)] [(-p <cqlPort> | --port <cqlPort>)]
[(-cu <cqlUsername> | --cql-username <cqlUsername>)]
[(-jp <jmxPassword> | --jmx-password <jmxPassword>)]
[(-jpf <jmxPasswordFile> | --jmx-password-file <jmxPasswordFile>)]
[(-ca <cqlAuthProvider> | --cql-auth-provider <cqlAuthProvider>)]
[(-ju <jmxUsername> | --jmx-username <jmxUsername>)]
[(-cp <cqlPassword> | --cql-password <cqlPassword>)] [(-cs | --cql-ssl)]
[(-h <cqlHost> | --host <cqlHost>)] <command> [<args>]
The most commonly used nodesync commands are:
disable Disable nodesync on the specified tables
enable Enable nodesync on the specified tables
help Display help information
tracing Enable/disable tracing for NodeSync
validation Monitor/manage user-triggered validations
See 'nodesync help <command>' for more information on a specific command.
For more command-specific help, see nodesync help.
- nodesync disable
-
Disables NodeSync on one or more target tables.
- nodesync enable
-
Sets nodesync to enabled to true on target tables.
- nodesync help
-
Displays usage information for nodesync commands.
- nodesync tracing
-
Captures detailed transactional NodeSync operations.
- nodesync validation
-
Monitors and manages user-triggered validations.