首页 > 解决方案 > Nifi-Registry - 与 git 集成

问题描述

我正在使用 Apache NiFi-Registry 并希望将其与 git 集成。因此,我有一个注册表 docker 容器,其中包含 git rep 所在的主机目录的卷。我使用 https 克隆了代表,并在容器中使用了不安全的 nifi-registry 实例。providers.xml 文件如下所示:

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

提交工作正常,但没有推送:

错误 [GitFlowMetaData 推送线程] oanrpflow.git.GitFlowMetaData 由于 org.eclipse.jgit.api.errors.TransportException 无法将提交推送到源:https://myuser@xxx/path/to/rep.git:安全连接到https://myuser@xxx/path/to/rep.git 由于 SSL 问题无法建立 org.eclipse.jgit.api.errors.TransportException: https://myuser@xxx/path/to/rep.git : 由于 SSL 问题,无法建立到 https://myuser@xxx/path/to/rep.git 的安全连接

我已经在我的代表中运行了这个命令:

git config http.sslVerify false

知道该怎么做吗?

标签: apache-nifiapache-nifi-registry

解决方案


推荐阅读