Flume: morphline sink with solr 5.1.0

1.  down flume 1.5.2 source code and change solr version to 5.1.0 

2. compile  and install

3. cp solr 4.10.1 related jars to lib dir  to sove this error

CloudSolrServer' (current frame, stack[2]) is not assignable to 'org/apache/solr/client/solrj/SolrServer

 

4. alter solr's schema.xml  for some fieldtype  to dealwith these errors

change distanceUnits="kilometers"  =====>     units="degrees"

 

SolrException: Must specify units="degrees" on field types with class SpatialRecursivePrefixTreeFieldType

SolrException: Must specify units="degrees" on field types with class BBoxField

 

But, there are  still some confilcts  such as

SolrException: Could not find collection  (Due to using solr-solrj-4.10.1.jar  to access solr 5.1.0 cloud)

 

org/kitesdk/morphline/solr/SolrLocator', 'org/apache/solr/client/solrj/impl/CloudSolrServer

 

The kitesdk jars still can't support solr5.1.0 till now.  So, only way is to modify kitesdk !

 

You should replace kite-morphlines-solr-core-0.12.0.jar with the new jar which support solr5.1.0

 

-----------------------------------------------

alter solrcloud configure files in zookeeper

1. #zkCli.sh

   #ls /

  #rmr  /configs/fifo_task

 

2. use solr's zkCli.sh to upload configure files to zookeeper

#./scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost 192.168.0.135:2181 -collection task -confname fifo_task -solrhome solr -confdir solr/configsets/fifo_configs/conf

3. unload cores in solr webui and then load them.

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值