File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
packages/modules/kafka/src Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -300,17 +300,10 @@ export class KafkaContainer extends GenericContainer {
300
300
}
301
301
302
302
private commandZookeeper ( ) : string {
303
- const port = DEFAULT_ZOOKEEPER_PORT ;
304
-
305
- let command = `echo 'clientPort=${ DEFAULT_ZOOKEEPER_PORT } ' > zookeeper.properties\n` ;
303
+ let command = "echo 'clientPort=" + DEFAULT_ZOOKEEPER_PORT + "' > zookeeper.properties\n" ;
306
304
command += "echo 'dataDir=/var/lib/zookeeper/data' >> zookeeper.properties\n" ;
307
305
command += "echo 'dataLogDir=/var/lib/zookeeper/log' >> zookeeper.properties\n" ;
308
306
command += "zookeeper-server-start zookeeper.properties &\n" ;
309
-
310
- command += `echo "Waiting for ZooKeeper to be ready on port ${ port } ..."\n` ;
311
- command += `while ! (echo > /dev/tcp/localhost/${ port } ) &> /dev/null; do sleep 0.1; done\n` ;
312
- command += `echo "ZooKeeper is ready."\n` ;
313
-
314
307
return command ;
315
308
}
316
309
}
You can’t perform that action at this time.
0 commit comments