コード例 #1
0
 public static Cassandra.Client getClientFromOutputAddressList(Configuration conf)
     throws IOException {
   return getClientFromAddressList(
       conf,
       ConfigHelper.getOutputInitialAddress(conf).split(","),
       ConfigHelper.getOutputRpcPort(conf));
 }
コード例 #2
0
 protected void checkOutputSpecs(Configuration conf) {
   if (ConfigHelper.getOutputKeyspace(conf) == null)
     throw new UnsupportedOperationException("You must set the keyspace with setOutputKeyspace()");
   if (ConfigHelper.getOutputPartitioner(conf) == null)
     throw new UnsupportedOperationException(
         "You must set the output partitioner to the one used by your Cassandra cluster");
   if (ConfigHelper.getOutputInitialAddress(conf) == null)
     throw new UnsupportedOperationException(
         "You must set the initial output address to a Cassandra node");
 }