[ 
https://issues.apache.org/jira/browse/NIFI-2957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15656081#comment-15656081
 ] 

ASF GitHub Bot commented on NIFI-2957:
--------------------------------------

Github user brosander commented on the issue:

    https://github.com/apache/nifi/pull/1193
  
    With the new build I'm seeing errors running though the steps 
[here](https://github.com/jtstorck/docker-zk-krb#run-the-zk-migrator-to-read-the-protected-nodes-for-client-from-zookeeper).
    
    ```
    2016-11-11 04:13:03,655 WARN [main-SendThread(zk-kerberos:2181)] 
org.apache.zookeeper.ClientCnxn Session 0x0 for server null, unexpected error, 
closing socket connection and attempting reconnect
    java.lang.NoClassDefFoundError: org/apache/log4j/Logger
            at org.apache.zookeeper.Login.<init>(Login.java:44) 
~[zookeeper-3.4.6.jar:3.4.6-1569965]
            at 
org.apache.zookeeper.client.ZooKeeperSaslClient.createSaslClient(ZooKeeperSaslClient.java:226)
 ~[zookeeper-3.4.6.jar:3.4.6-1569965]
            at 
org.apache.zookeeper.client.ZooKeeperSaslClient.<init>(ZooKeeperSaslClient.java:131)
 ~[zookeeper-3.4.6.jar:3.4.6-1569965]
            at 
org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:949) 
~[zookeeper-3.4.6.jar:3.4.6-1569965]
            at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1003) 
~[zookeeper-3.4.6.jar:3.4.6-1569965]
    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
            at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
~[na:1.8.0_111]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
~[na:1.8.0_111]
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) 
~[na:1.8.0_111]
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
~[na:1.8.0_111]
            ... 5 common frames omitted
    2016-11-11 04:13:03,713 INFO [main] o.a.n.t.zkmigrator.ZooKeeperMigrator 
Persisting data from source ZooKeeper: 
ZooKeeperEndpointConfig{connectString=zk-kerberos:2181, path=/}
    Exception in thread "main" java.lang.RuntimeException: unable to perform 
operation: KeeperErrorCode = ConnectionLoss for /
            at 
org.apache.nifi.toolkit.zkmigrator.ZooKeeperMigratorMain.main(ZooKeeperMigratorMain.java:145)
    Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: 
KeeperErrorCode = ConnectionLoss for /
            at 
org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
            at 
org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
            at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1472)
            at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1500)
            at 
org.apache.nifi.toolkit.zkmigrator.ZooKeeperMigrator.getNode(ZooKeeperMigrator.java:188)
            at 
org.apache.nifi.toolkit.zkmigrator.ZooKeeperMigrator.readZooKeeper(ZooKeeperMigrator.java:95)
            at 
org.apache.nifi.toolkit.zkmigrator.ZooKeeperMigratorMain.main(ZooKeeperMigratorMain.java:137)
    ```
    
    Unfortunately it looks like Zookeeper has [hard log4j 
dependencies](https://github.com/apache/zookeeper/blob/release-3.4.6/src/java/main/org/apache/zookeeper/Login.java#L44).


> ZooKeeper migration toolkit
> ---------------------------
>
>                 Key: NIFI-2957
>                 URL: https://issues.apache.org/jira/browse/NIFI-2957
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Tools and Build
>    Affects Versions: 1.0.0, 0.7.1
>            Reporter: Jeff Storck
>            Assignee: Jeff Storck
>             Fix For: 1.2.0
>
>
> When upgrading from NiFi 0.x to 1.x, or when it is desired to move from the 
> embedded ZooKeeper to an external ZooKeeper, state from ZooKeeper needs to be 
> migrated.
> Initial considerations:
> * Username/password protection of nodes is not supported in NiFi 1.x.. Those 
> nodes that are configured that way in ZooKeeper need to be migrated to have 
> an open ACL.
> * The toolkit will support a mode to read data from a configurable root node 
> in a source ZooKeeper, and the data will be written to a file designated via 
> CLI.
> * The toolkit will support a mode to write data to a destination ZooKeeper
> * The toolkit will not allow data to be written to the same ZooKeeper from 
> which the source data was obtained.
> * The toolkit will not support reconnecting to ZooKeeper if it is 
> disconnected.  The user can rerun the tool.
> * The toolkit will support ZooKeepers configured with Kerberos.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to