【发布时间】:2019-10-03 23:07:13
【问题描述】:
我正在运行一个 3 节点 SOLR 云,并通过 NiFi 连接到 zookeeper。我想知道如何将您从常规 solr 更新中看到的路径参数添加到 PutSOLRContentStream 处理器。
我的工作卷曲:
/solr/my_collection/update&stream.file=/opt/files/$file&commit=true&separator=%7C&stream.contentType=text/csv;charset=utf-8&fieldnames=...
我从 PutSOLRContentStream 处理器得到的错误:(取自 nifi-app.log)
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at
http://my_solr_server:8983/solr/my_collection_shard#: Expected mime type
application/octet-stream but got text/html. <html>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing
/solr/my_collection_shard#/update/extract&commit=true&separator=%7C&
charset=utf-8&fieldnames=... Reason:
<pre> Not Found</pre></p>
如何将我的 curl 转换为正常工作的 PutSOLRContentStreamProcessor? (具体来说,如何正确填写处理器中的“Content Stream Path”和“Content-Type”字段,以及是否需要添加其他字段)
【问题讨论】:
标签: curl solr apache-nifi