File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
test-support/src/main/scala/com/datastax/spark/connector/ccm Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ object CcmConfig {
116
116
val DEFAULT_SERVER_LOCALHOST_KEYSTORE_PATH : String = " /server_localhost.keystore"
117
117
118
118
// DSE versions
119
+ val V6_8_5 : Version = Version .parse(" 6.8.5" )
119
120
val V6_8_3 : Version = Version .parse(" 6.8.3" )
120
121
val V6_8_0 : Version = Version .parse(" 6.8.0" )
121
122
val V6_7_0 : Version = Version .parse(" 6.7.0" )
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ import java.util.concurrent.atomic.AtomicBoolean
6
6
7
7
import com .datastax .oss .driver .api .core .Version
8
8
import com .datastax .spark .connector .ccm .CcmConfig
9
+ import com .datastax .spark .connector .ccm .CcmConfig .V6_8_5
9
10
import org .slf4j .{Logger , LoggerFactory }
10
11
11
- import scala .collection .JavaConverters ._
12
-
13
12
private [mode] trait DefaultExecutor extends ClusterModeExecutor {
14
13
private val logger : Logger = LoggerFactory .getLogger(classOf [StandardModeExecutor ])
15
14
@@ -91,6 +90,10 @@ private[mode] trait DefaultExecutor extends ClusterModeExecutor {
91
90
s " node $i"
92
91
93
92
execute(addArgs : _* )
93
+
94
+ if (config.dseEnabled && config.getDseVersion.exists(_.compareTo(V6_8_5 ) >= 0 )) {
95
+ execute(" updateconf" , s " metadata_directory: ${dir.toFile.getAbsolutePath}/metadata $i" )
96
+ }
94
97
}
95
98
96
99
config.cassandraConfiguration.foreach { case (key, value) =>
You can’t perform that action at this time.
0 commit comments