Nifi注册表无法将数据推送到git

时间:2019-10-18 13:29:35

标签: eclipse git ssh apache-nifi apache-nifi-registry

Nifi注册表无法将数据推入git并抛出错误

错误[GitFlowMetaData推送线程] o.a.n.r.p.flow.git.GitFlowMetaData由于org.eclipse.jgit.api.errors.TransportException无法将提交推送到原始位置:ssh://

Apache Nifi注册版本==> 0.5.0

我已经使用GitFlowPersistenceProvider属性将Flow Persistence Providers配置为provider.xml文件。

<flowPersistenceProvider>
 <class>org.apache.nifi.registry.provider.flow.git.GitFlowPersistenceProvider</class>
    <property name="Flow Storage Directory">./flow_storage/Streaming</property>
    <property name="Remote To Push">origin</property>
    <property name="Remote Access User"></property>
    <property name="Remote Access Password"></property>
</flowPersistenceProvider>

然后使用ssh模式克隆我的git存储库,该存储库位于“ Visual Studio Team Foundation Server 2015”中。

git clone ssh://sourcecontrol.xxxxxxxxxxxxxxxxxxx

此后,我对Nifi流程进行了一些更改并提交了本地更改。

当Nifi注册表尝试推送数据时,它会出现错误,但是当我使用git命令手动推送代码时,它会正常工作。

详细信息错误-

    ERROR [GitFlowMetaData Push thread] o.a.n.r.p.flow.git.GitFlowMetaData Failed to push commits to origin due to org.eclipse.jgit.api.errors.TransportException: ssh://sourcecontrol.xxxxxxxxxx: Short read of block.
org.eclipse.jgit.api.errors.TransportException: ssh://sourcecontrol.xxxxxxxxxx: Short read of block.
    at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:180)
    at org.apache.nifi.registry.provider.flow.git.GitFlowMetaData.lambda$startPushThread$1(GitFlowMetaData.java:225)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://sourcecontrol.carecorenational.com:22/tfs/AnalyticEngineering/Advanced%20Analytics/_git/TouchesDataStreaming: Short read of block.
    at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:239)
    at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:170)
    at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:172)
    at org.eclipse.jgit.transport.Transport.push(Transport.java:1344)
    at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:169)
    ... 8 common frames omitted
Caused by: java.io.EOFException: Short read of block.
    at org.eclipse.jgit.util.IO.readFully(IO.java:249)
    at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:225)
    at org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:157)
    at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:139)
    at org.eclipse.jgit.util.IO.readFully(IO.java:247)
    at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:225)
    at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:155)
    at org.eclipse.jgit.transport.BasePackPushConnection.readStringLongTimeout(BasePackPushConnection.java:423)
    at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:370)
    at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:222)
    ... 12 common frames omitted

0 个答案:

没有答案