67
67
/** Base class for integration tests. */
68
68
public class KuduTestBase {
69
69
70
- private static final String DOCKER_IMAGE = "apache/kudu:1.13 .0" ;
70
+ private static final String DOCKER_IMAGE = "apache/kudu:1.17 .0" ;
71
71
private static final Integer KUDU_MASTER_PORT = 7051 ;
72
72
private static final Integer KUDU_TSERVER_PORT = 7050 ;
73
73
private static final Integer NUMBER_OF_REPLICA = 3 ;
@@ -93,29 +93,32 @@ public static void beforeClass() throws Exception {
93
93
new GenericContainer <>(DOCKER_IMAGE )
94
94
.withExposedPorts (KUDU_MASTER_PORT , 8051 )
95
95
.withCommand ("master" )
96
+ .withEnv ("MASTER_ARGS" , "--unlock_unsafe_flags" )
96
97
.withNetwork (network )
97
98
.withNetworkAliases ("kudu-master" );
98
99
master .start ();
100
+ assertTrue (master .isRunning ());
99
101
masterAddress =
100
102
HostAndPort .fromParts (master .getHost (), master .getMappedPort (KUDU_MASTER_PORT ));
101
103
102
104
for (int instance = 1 ; instance <= NUMBER_OF_REPLICA ; instance ++) {
103
105
String instanceName = "kudu-tserver-" + instance ;
104
- GenericContainer <?> tableServer =
106
+ GenericContainer <?> tabletServer =
105
107
new GenericContainer <>(DOCKER_IMAGE )
106
- .withExposedPorts (KUDU_TSERVER_PORT )
108
+ .withExposedPorts (KUDU_TSERVER_PORT , 8050 )
107
109
.withCommand ("tserver" )
108
- .withEnv ("KUDU_MASTERS" , "kudu-master:" + KUDU_MASTER_PORT )
110
+ .withEnv ("KUDU_MASTERS" , "kudu-master" )
109
111
.withEnv (
110
112
"TSERVER_ARGS" ,
111
- "--fs_wal_dir=/var/lib/kudu/tserver --logtostderr "
113
+ "--fs_wal_dir=/var/lib/kudu/tserver --logtostderr --unlock_unsafe_flags "
112
114
+ " --use_hybrid_clock=false --rpc_advertised_addresses="
113
115
+ instanceName )
114
116
.withNetwork (network )
115
117
.withNetworkAliases (instanceName )
116
118
.dependsOn (master );
117
- tableServer .start ();
118
- tServersBuilder .add (tableServer );
119
+ tabletServer .start ();
120
+ assertTrue (tabletServer .isRunning ());
121
+ tServersBuilder .add (tabletServer );
119
122
}
120
123
tServers = tServersBuilder .build ();
121
124
0 commit comments