mirror of https://github.com/apache/nifi.git
NIFI-10079 Upgraded ZooKeeper from 3.5.9 to 3.8.0
Signed-off-by: Nathan Gough <thenatog@gmail.com> This closes #6096.
This commit is contained in:
parent
4b655ecb68
commit
1342ea7025
|
@ -22,9 +22,6 @@
|
|||
</parent>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
<artifactId>nifi-spark-receiver</artifactId>
|
||||
<properties>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<!-- Override commons-compress -->
|
||||
|
|
|
@ -175,6 +175,16 @@
|
|||
<artifactId>nifi-flowfile-repo-serialization</artifactId>
|
||||
<version>1.17.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!-- metrics-core required for ZooKeeper Server -->
|
||||
<dependency>
|
||||
<groupId>io.dropwizard.metrics</groupId>
|
||||
<artifactId>metrics-core</artifactId>
|
||||
</dependency>
|
||||
<!-- snappy-java required for ZooKeeper Server -->
|
||||
<dependency>
|
||||
<groupId>org.xerial.snappy</groupId>
|
||||
<artifactId>snappy-java</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.zookeeper</groupId>
|
||||
<artifactId>zookeeper</artifactId>
|
||||
|
|
|
@ -118,7 +118,8 @@ public class ZooKeeperStateServer extends ZooKeeperServerMain {
|
|||
embeddedZkServer.setMaxSessionTimeout(config.getMaxSessionTimeout());
|
||||
|
||||
connectionFactory = ServerCnxnFactory.createFactory();
|
||||
connectionFactory.configure(getAvailableSocketAddress(config), config.getMaxClientCnxns(), quorumPeerConfig.isSslQuorum());
|
||||
final int listenBacklog = quorumPeerConfig.getClientPortListenBacklog();
|
||||
connectionFactory.configure(getAvailableSocketAddress(config), config.getMaxClientCnxns(), listenBacklog, quorumPeerConfig.isSslQuorum());
|
||||
connectionFactory.startup(embeddedZkServer);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
|
@ -136,7 +137,8 @@ public class ZooKeeperStateServer extends ZooKeeperServerMain {
|
|||
try {
|
||||
transactionLog = new FileTxnSnapLog(quorumPeerConfig.getDataLogDir(), quorumPeerConfig.getDataDir());
|
||||
connectionFactory = ServerCnxnFactory.createFactory();
|
||||
connectionFactory.configure(getAvailableSocketAddress(quorumPeerConfig), quorumPeerConfig.getMaxClientCnxns(), quorumPeerConfig.isSslQuorum());
|
||||
final int listenBacklog = quorumPeerConfig.getClientPortListenBacklog();
|
||||
connectionFactory.configure(getAvailableSocketAddress(quorumPeerConfig), quorumPeerConfig.getMaxClientCnxns(), listenBacklog, quorumPeerConfig.isSslQuorum());
|
||||
|
||||
quorumPeer = new QuorumPeer();
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ public class ITSecureClientZooKeeperFactory {
|
|||
|
||||
ZooKeeperServer zkServer = new ZooKeeperServer(dataDir.toFile(), dataDir.toFile(), 2000);
|
||||
ServerCnxnFactory secureConnectionFactory = ServerCnxnFactory.createFactory(clientPort, -1);
|
||||
secureConnectionFactory.configure(new InetSocketAddress(clientPort), -1, true);
|
||||
secureConnectionFactory.configure(new InetSocketAddress(clientPort), -1, -1, true);
|
||||
secureConnectionFactory.startup(zkServer);
|
||||
|
||||
return secureConnectionFactory;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
<description>NiFi: Framework Bundle</description>
|
||||
<properties>
|
||||
<curator.version>5.2.1</curator.version>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
<modules>
|
||||
<module>nifi-framework</module>
|
||||
|
@ -535,6 +534,12 @@
|
|||
<artifactId>cglib-nodep</artifactId>
|
||||
<version>3.3.0</version>
|
||||
</dependency>
|
||||
<!-- metrics-core marked as provided in zookeeper -->
|
||||
<dependency>
|
||||
<groupId>io.dropwizard.metrics</groupId>
|
||||
<artifactId>metrics-core</artifactId>
|
||||
<version>4.1.12.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.zookeeper</groupId>
|
||||
<artifactId>zookeeper</artifactId>
|
||||
|
|
|
@ -109,7 +109,6 @@
|
|||
<hive.version>${hive3.version}</hive.version>
|
||||
<calcite.version>1.27.0</calcite.version>
|
||||
<calcite.avatica.version>1.6.0</calcite.avatica.version>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
<artifactId>nifi-ranger-bundle</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
<module>nifi-ranger-plugin</module>
|
||||
<module>nifi-ranger-nar</module>
|
||||
|
|
|
@ -23,10 +23,6 @@
|
|||
<artifactId>nifi-spark-bundle</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
<module>nifi-livy-nar</module>
|
||||
<module>nifi-livy-controller-service-api-nar</module>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
<packaging>pom</packaging>
|
||||
<properties>
|
||||
<hadoop.version>2.7.3</hadoop.version>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
<modules>
|
||||
<module>nifi-hbase_1_1_2-client-service</module>
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
<properties>
|
||||
<hbase.version>2.2.2</hbase.version>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
|
|
@ -24,10 +24,6 @@
|
|||
<artifactId>nifi-registry-ranger</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
<module>nifi-registry-ranger-assembly</module>
|
||||
<module>nifi-registry-ranger-jersey-bundle</module>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
</parent>
|
||||
<properties>
|
||||
<curator.version>5.2.1</curator.version>
|
||||
<zookeeper.version>3.5.9</zookeeper.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
Loading…
Reference in New Issue