storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Cardaci <cyrus....@gmail.com>
Subject Change Storm binding address in local mode
Date Sun, 01 Dec 2019 19:11:04 GMT
Hi,

Storm (or some of its services) listens on the TCP port 2000 during
the local execution. I'm using a LocalCluster and I'm submitting the
topology programmatically.

Logs say:

> 19:53:52.945 [main] INFO  o.a.s.s.o.a.z.s.NIOServerCnxnFactory - binding to port 0.0.0.0/0.0.0.0:2000
> 19:53:52.947 [main] INFO  o.a.s.z.Zookeeper - Starting inprocess zookeeper at port 2000
and dir /tmp/ea232187-2a1d-4a82-8472-b5c0335d0b4f

The sockets listen on 0.0.0.0 and since I need to run some
long-running tests on an Internet-facing machine I was wondering how
to make it listen on localhost instead or if there is anything else I
can do to improve the security in this scenario.

I tried altering the daemon configuration like the following with no
luck (yes that would change the port not the address; it was just a
test):

LocalCluster cluster = new LocalCluster.Builder()
        .withDaemonConf(Config.STORM_ZOOKEEPER_PORT, 1234)
        .build();

Any hint will be greatly appreciated.


Regards,
Andrea

Mime
View raw message