Member since
04-26-2018
10
Posts
0
Kudos Received
0
Solutions
06-25-2019
05:11 PM
Hi I am trying to intergrate nifi 1.9.2 ,Nifi-registry 0.4.0 and git repos(via vsts) I followed the instruction in the Nifi Manual and i configured the providers.xml as below <flowPersistenceProvider> <class>org.apache.nifi.registry.provider.flow.git.GitFlowPersistenceProvider</class> <property name="Flow Storage Directory">/repos/nifi-git-registry/test-project</property> <property name="Remote To Push">origin</property> <property name="Remote Access User">username</property> <property name="Remote Access Password">[key]</property> </flowPersistenceProvider> I did git clone and provide the path mentioned in Flow Storage Directory Now when I try this I see the flow getting pushed to the path mentioned in Flow Storage Directory but not in git repo. I have to do manual push from the location to push the changes. As per the manual push I can see a comment which mention nifi registry pushed this code When I check the logs I get org.eclipse.jgit.api.errors.TransportException: https://#####git#######: cannot open git-receive-pack at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:180) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] at org.apache.nifi.registry.provider.flow.git.GitFlowMetaData.lambda$startPushThread$1(GitFlowMetaData.java:225) ~[nifi-registry-framework-0.4.0.jar:0.4.0] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:1.8.0_181] at java.util.concurrent.FutureTask.runAndReset(Unknown Source) ~[na:1.8.0_181] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) ~[na:1.8.0_181] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_181] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:1.8.0_181] at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_181] Caused by: org.eclipse.jgit.errors.TransportException: https://######_git######: cannot open git-receive-pack at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:584) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:435) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:160) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] at org.eclipse.jgit.transport.Transport.push(Transport.java:1344) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:169) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] ... 8 common frames omitted Caused by: java.net.ConnectException: Connection timed out (Connection timed out) ######.visualstudio.com at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:213) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:498) ~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r] ... 12 common frames omitted Apart from provider.xml is there any other config which needs to be done
... View more
Labels:
- Labels:
-
Apache NiFi
05-18-2018
12:43 PM
@Shu Sorry for the late response .The flow worked fine.As mentioned the unpack processor recursively extract all the files.When I make sample zip file it works fine.But unfortunately the ZIP file I have to work with has a descriptor.This cause the processor to fail and gives an unsupported feature exception.As workaround I am planning to write a script and call it via execute script processor.Will keep you updated on my progress
... View more
05-15-2018
10:52 AM
@Shu Thanks for the response.I tried changing the path attribute by providing it with test/test_folder.I used update attribute I coulde see that the initial path was '/'.After Update attribute it changed to test/test_folder.But the unpack still goes to failure condition.It gives an an unsupported zip feature extension and descriptor not supported.
... View more
05-14-2018
01:50 PM
Suppose we have a zip file which has a folder and within folder it files a.txt.b.txt,c.txt test.zip -> test_folder-> a.txt,b.txt,c.txt It seems that that unpack processor does not support this type of extract
... View more
Labels:
- Labels:
-
Apache NiFi
05-07-2018
10:15 AM
Thanks @Saikrishna Tarapareddy it worked
... View more
05-07-2018
10:14 AM
Labels:
- Labels:
-
Apache NiFi
04-26-2018
09:44 AM
Labels:
- Labels:
-
Apache NiFi