Search in sources :

Example 1 with CmdLineOptions

use of org.apache.cassandra.tools.BulkLoader.CmdLineOptions in project cassandra by apache.

the class LoaderOptions method getCmdLineOptions.

private static CmdLineOptions getCmdLineOptions() {
    CmdLineOptions options = new CmdLineOptions();
    options.addOption("v", VERBOSE_OPTION, "verbose output");
    options.addOption("h", HELP_OPTION, "display this help message");
    options.addOption(null, NOPROGRESS_OPTION, "don't display progress");
    options.addOption("i", IGNORE_NODES_OPTION, "NODES", "don't stream to this (comma separated) list of nodes");
    options.addOption("d", INITIAL_HOST_ADDRESS_OPTION, "initial hosts", "Required. try to connect to these hosts (comma separated) initially for ring information");
    options.addOption("p", NATIVE_PORT_OPTION, "rpc port", "port used for native connection (default 9042)");
    options.addOption("t", THROTTLE_MBITS, "throttle", "throttle speed in Mbits (default unlimited)");
    options.addOption("idct", INTER_DC_THROTTLE_MBITS, "inter-dc-throttle", "inter-datacenter throttle speed in Mbits (default unlimited)");
    options.addOption("u", USER_OPTION, "username", "username for cassandra authentication");
    options.addOption("pw", PASSWD_OPTION, "password", "password for cassandra authentication");
    options.addOption("ap", AUTH_PROVIDER_OPTION, "auth provider", "custom AuthProvider class name for cassandra authentication");
    options.addOption("cph", CONNECTIONS_PER_HOST, "connectionsPerHost", "number of concurrent connections-per-host.");
    // ssl connection-related options
    options.addOption("ts", SSL_TRUSTSTORE, "TRUSTSTORE", "Client SSL: full path to truststore");
    options.addOption("tspw", SSL_TRUSTSTORE_PW, "TRUSTSTORE-PASSWORD", "Client SSL: password of the truststore");
    options.addOption("ks", SSL_KEYSTORE, "KEYSTORE", "Client SSL: full path to keystore");
    options.addOption("kspw", SSL_KEYSTORE_PW, "KEYSTORE-PASSWORD", "Client SSL: password of the keystore");
    options.addOption("prtcl", SSL_PROTOCOL, "PROTOCOL", "Client SSL: connections protocol to use (default: TLS)");
    options.addOption("alg", SSL_ALGORITHM, "ALGORITHM", "Client SSL: algorithm (default: SunX509)");
    options.addOption("st", SSL_STORE_TYPE, "STORE-TYPE", "Client SSL: type of store");
    options.addOption("ciphers", SSL_CIPHER_SUITES, "CIPHER-SUITES", "Client SSL: comma-separated list of encryption suites to use");
    options.addOption("f", CONFIG_PATH, "path to config file", "cassandra.yaml file path for streaming throughput and client/server SSL.");
    return options;
}
Also used : CmdLineOptions(org.apache.cassandra.tools.BulkLoader.CmdLineOptions)

Aggregations

CmdLineOptions (org.apache.cassandra.tools.BulkLoader.CmdLineOptions)1