[
https://issues.apache.org/jira/browse/NIFI-6624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16939662#comment-16939662
]
Nathan Gough commented on NIFI-6624:
------------------------------------
The original idea here was to automatically change user's zookeeper.properties
file from the old format to the new format. There's a few issues here however,
1 being that it's code changing configuration which can be confusing. 2 being
we can't for sure know which port should be configured across all servers,
which potentially makes the code changing the configuration wrongly anyway.
Instead, it may be best to simply document migration for existing embedded
zookeeper users to describe how they should update their zookeeper.properties
file.
> Automatically migrate old embedded zookeeper.properties files to the new
> format
> -------------------------------------------------------------------------------
>
> Key: NIFI-6624
> URL: https://issues.apache.org/jira/browse/NIFI-6624
> Project: Apache NiFi
> Issue Type: Sub-task
> Components: Core Framework
> Affects Versions: 1.9.2
> Reporter: Nathan Gough
> Assignee: Nathan Gough
> Priority: Major
> Fix For: 1.10.0
>
>
> The 3.5.x Zookeeper properties file has changed:
> [https://zookeeper.apache.org/doc/r3.5.2-alpha/zookeeperReconfig.html#sc_reconfig_clientport]
> As a result, the current embedded zookeeper bundled with NiFi will require a
> minor change to the zookeeper.properties file. We could potentially do this
> automatically by removing the clientPort line and appending the value to the
> end of the server string/s.
> The assumption here would be that the client port is currently configured the
> same across all servers. If not, we would not be able to auto-migrate the
> change, and we would need to fail the start and get the user to configure the
> zookeeper.properties file correctly across all nodes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)