Реестр Nifi не может отправить данные в Git - PullRequest
0 голосов
/ 18 октября 2019

Реестр Nifi не может отправить данные в git-бросок ниже ошибки

ОШИБКА [GitFlowMetaData Push-поток] oanrpflow.git.GitFlowMetaData Не удалось отправить коммиты в источник из-за org.eclipse.jgit.api.errors. TransportException: ssh: //

Apache Nifi-Registry verion ==> 0.5.0

Я настроил поставщиков сохраняемых потоков, используя свойство GitFlowPersistenceProvider, в файл 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>

Затем выполните клонирование моего репозитория git, который находится в Visual Studio Team Foundation Server 2015 с использованием режима ssh.

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
...