mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.0' into cassandra-2.1
This commit is contained in:
commit
86cd423489
|
|
@ -370,29 +370,29 @@ public class CqlConfigHelper
|
|||
conf.set(INPUT_NATIVE_AUTH_PROVIDER, authProvider);
|
||||
}
|
||||
|
||||
public static void setInputNativeSSLTruststorePath(Configuration conf, String authProvider)
|
||||
public static void setInputNativeSSLTruststorePath(Configuration conf, String path)
|
||||
{
|
||||
conf.set(INPUT_NATIVE_SSL_TRUST_STORE_PATH, authProvider);
|
||||
conf.set(INPUT_NATIVE_SSL_TRUST_STORE_PATH, path);
|
||||
}
|
||||
|
||||
public static void setInputNativeSSLKeystorePath(Configuration conf, String authProvider)
|
||||
public static void setInputNativeSSLKeystorePath(Configuration conf, String path)
|
||||
{
|
||||
conf.set(INPUT_NATIVE_SSL_KEY_STORE_PATH, authProvider);
|
||||
conf.set(INPUT_NATIVE_SSL_KEY_STORE_PATH, path);
|
||||
}
|
||||
|
||||
public static void setInputNativeSSLKeystorePassword(Configuration conf, String authProvider)
|
||||
public static void setInputNativeSSLKeystorePassword(Configuration conf, String pass)
|
||||
{
|
||||
conf.set(INPUT_NATIVE_SSL_KEY_STORE_PASSWARD, authProvider);
|
||||
conf.set(INPUT_NATIVE_SSL_KEY_STORE_PASSWARD, pass);
|
||||
}
|
||||
|
||||
public static void setInputNativeSSLTruststorePassword(Configuration conf, String authProvider)
|
||||
public static void setInputNativeSSLTruststorePassword(Configuration conf, String pass)
|
||||
{
|
||||
conf.set(INPUT_NATIVE_SSL_TRUST_STORE_PASSWARD, authProvider);
|
||||
conf.set(INPUT_NATIVE_SSL_TRUST_STORE_PASSWARD, pass);
|
||||
}
|
||||
|
||||
public static void setInputNativeSSLCipherSuites(Configuration conf, String authProvider)
|
||||
public static void setInputNativeSSLCipherSuites(Configuration conf, String suites)
|
||||
{
|
||||
conf.set(INPUT_NATIVE_SSL_CIPHER_SUITES, authProvider);
|
||||
conf.set(INPUT_NATIVE_SSL_CIPHER_SUITES, suites);
|
||||
}
|
||||
|
||||
public static void setInputNativeReuseAddress(Configuration conf, String reuseAddress)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ import com.google.common.collect.Maps;
|
|||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.cassandra.db.marshal.AbstractType;
|
||||
import org.apache.cassandra.db.marshal.BytesType;
|
||||
import org.apache.cassandra.dht.IPartitioner;
|
||||
|
|
@ -125,7 +124,7 @@ public class CqlRecordReader extends RecordReader<Long, Row>
|
|||
}
|
||||
|
||||
if (cluster != null)
|
||||
session = cluster.connect(keyspace);
|
||||
session = cluster.connect(quote(keyspace));
|
||||
rowIterator = new RowIterator();
|
||||
logger.debug("created {}", rowIterator);
|
||||
}
|
||||
|
|
@ -488,4 +487,9 @@ public class CqlRecordReader extends RecordReader<Long, Row>
|
|||
return row.getMap(name, keysClass, valuesClass);
|
||||
}
|
||||
}
|
||||
|
||||
private String quote(String identifier)
|
||||
{
|
||||
return "\"" + identifier.replaceAll("\"", "\"\"") + "\"";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue