You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Grant Johnson <gr...@gmail.com> on 2017/10/30 20:50:35 UTC

Nifi Embedded Zookeeper Ports

In a firewall constrained environment is there a way to configure the Nifi
embedded zookeeper to use static ports when connecting to server ports on
other nodes?

I am using the default ports for the server instances 2181, 2888, etc and
am looking to statically define the ports used in connecting instead of
what appears to be randomized ports greater than 30k.

Nifi version 1.4.0
Java version 1.8.0-144

Thanks in advance

Re: Nifi Embedded Zookeeper Ports

Posted by Grant Johnson <gr...@gmail.com>.
Andy,

Thank you for getting back to me so quickly.

If I understand it correctly, I think I’m asking about something slightly
different.  When I run a secure Nifi cluster in a more open firewall
environment the configuration works and using tcpdump it looks roughly like
this:
- fqdn1.37186 > fqdn2.2181
- fqdn1.46800 > fqdn2.2888
- fqdn1.33610 > fqdn2.3888
- fqdn2.46628 > fqdn1.3888
- fqdn1.52310 > fqdn2.11443

Since the > 30k ports change each start up and periodically during
operation, I’m trying to find a way to define them to be chosen in a
limited port range.  Nothing in the Zookeeper config params stuck out to me
as obvious for this.

Thanks in advance.

Thanks,
Grant

On Mon, Oct 30, 2017 at 5:24 PM Andy LoPresto <al...@apache.org> wrote:

> Grant,
>
> I’m not sure if this is what you are looking for, but in ZooKeeper version
> 3.3.0 and above [1], you can set the client port in the ZK configuration
> file.
>
> [1]
> https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_advancedConfiguration
>
> Andy LoPresto
> alopresto@apache.org
> *alopresto.apache@gmail.com <al...@gmail.com>*
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
>
> On Oct 30, 2017, at 1:50 PM, Grant Johnson <gr...@gmail.com> wrote:
>
> In a firewall constrained environment is there a way to configure the Nifi
> embedded zookeeper to use static ports when connecting to server ports on
> other nodes?
>
> I am using the default ports for the server instances 2181, 2888, etc and
> am looking to statically define the ports used in connecting instead of
> what appears to be randomized ports greater than 30k.
>
> Nifi version 1.4.0
> Java version 1.8.0-144
>
> Thanks in advance
>
>
>

Re: Nifi Embedded Zookeeper Ports

Posted by Andy LoPresto <al...@apache.org>.
Grant,

I’m not sure if this is what you are looking for, but in ZooKeeper version 3.3.0 and above [1], you can set the client port in the ZK configuration file.

[1] https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_advancedConfiguration <https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_advancedConfiguration>

Andy LoPresto
alopresto@apache.org
alopresto.apache@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Oct 30, 2017, at 1:50 PM, Grant Johnson <gr...@gmail.com> wrote:
> 
> In a firewall constrained environment is there a way to configure the Nifi
> embedded zookeeper to use static ports when connecting to server ports on
> other nodes?
> 
> I am using the default ports for the server instances 2181, 2888, etc and
> am looking to statically define the ports used in connecting instead of
> what appears to be randomized ports greater than 30k.
> 
> Nifi version 1.4.0
> Java version 1.8.0-144
> 
> Thanks in advance