Пример #1
0
 private static CmdLineOptions getCmdLineOptions() {
   CmdLineOptions options = new CmdLineOptions();
   options.addOption(null, DEBUG_OPTION, "display stack traces");
   options.addOption("h", HELP_OPTION, "display this help message");
   options.addOption("k", KEEP_SOURCE, "do not delete the source sstables");
   return options;
 }
 private static CmdLineOptions getCmdLineOptions() {
   CmdLineOptions options = new CmdLineOptions();
   options.addOption(null, DEBUG_OPTION, "display stack traces");
   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, "don't stream to this (comma separated) list of nodes");
   return options;
 }
Пример #3
0
 private static CmdLineOptions getCmdLineOptions() {
   CmdLineOptions options = new CmdLineOptions();
   options.addOption(null, DEBUG_OPTION, "display stack traces");
   options.addOption("v", VERBOSE_OPTION, "verbose output");
   options.addOption("h", HELP_OPTION, "display this help message");
   options.addOption(null, NO_SNAPSHOT_OPTION, "don't snapshot the sstables before splitting");
   options.addOption(
       "s",
       SIZE_OPTION,
       "size",
       "maximum size in MB for the output sstables (default: " + DEFAULT_SSTABLE_SIZE + ")");
   return options;
 }
 private static CmdLineOptions getCmdLineOptions() {
   CmdLineOptions options = new CmdLineOptions();
   options.addOption(null, DEBUG_OPTION, "display stack traces");
   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", RPC_PORT_OPTION, "rpc port", "port used for rpc (default 9160)");
   options.addOption(
       "t", THROTTLE_MBITS, "throttle", "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(
       "tf",
       TRANSPORT_FACTORY,
       "transport factory",
       "Fully-qualified ITransportFactory class name for creating a connection to cassandra");
   // 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;
 }