NIFI putsolrstream使用

本文主要介紹從Hive中獲取數據,將數據寫到solr中,ConvertAvroToJSON 注意一下avro schema 以下:spa

{ "namespace": "mynamespace.com", "type": "record", "name": "TEST_DATA1", "fields": [ {"name": "ENAME", "type": "string"} ] }ip

solr 分爲兩種模式,standard和cloud兩種get

standard :solr type 選擇standardstring

                  solr location 配置 http://ip:port/solr/collectionNameio

                   Collection 不配置配置

cloud : solr type 選擇cloudim

             solr location 配置成 Zookeeper地址  例:數據

packone11:2181,packone12:2181,packone13:2181/infra-solrimg

              collection 配置solr

相關文章
相關標籤/搜索