Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issue with Nifi-registry git intergration

Highlighted

Issue with Nifi-registry git intergration

New Contributor

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



1 REPLY 1

Re: Issue with Nifi-registry git intergration

Guru

I wrote a blog about this setup (https://community.hortonworks.com/content/kbentry/210286/storing-apache-nifi-versioned-flows-in-a-gi...) and it seems like you did all the configuration steps I included. However, I was not using Git VSTS.