File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
connector/src/main/scala/com/datastax/spark/connector/cql Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ object CassandraConnector extends Logging {
220
220
221
221
/** Returns a CassandraConnector created from properties found in the [[org.apache.spark.SparkConf SparkConf ]] object */
222
222
def apply (conf : SparkConf ): CassandraConnector = {
223
- CassandraConnector (CassandraConnectorConf .fromSparkConf (conf))
223
+ CassandraConnector (CassandraConnectorConf (conf))
224
224
}
225
225
226
226
/** Returns a CassandraConnector with runtime Cluster Environment information. This can set remoteConnectionsPerExecutor
Original file line number Diff line number Diff line change @@ -355,7 +355,6 @@ object CassandraConnectorConf extends Logging {
355
355
}
356
356
357
357
def apply (conf : SparkConf ): CassandraConnectorConf = {
358
- ConfigCheck .checkConfig(conf)
359
358
fromSparkConf(conf)
360
359
}
361
360
@@ -410,6 +409,9 @@ object CassandraConnectorConf extends Logging {
410
409
}
411
410
412
411
def fromSparkConf (conf : SparkConf ) = {
412
+
413
+ ConfigCheck .checkConfig(conf)
414
+
413
415
val localDC = conf.getOption(LocalDCParam .name)
414
416
val keepAlive = conf.getInt(KeepAliveMillisParam .name, KeepAliveMillisParam .default)
415
417
val minReconnectionDelay = conf.getInt(MinReconnectionDelayParam .name, MinReconnectionDelayParam .default)
You can’t perform that action at this time.
0 commit comments