hdfs-indexer /hbase-indexer向solr创建索引报错解决

1 篇文章 0 订阅
1 篇文章 0 订阅

我在使用hdfs-indexer向solr创建索引时候,mapreduce已经执行完了,但是到最后出现,其实下面这个报错是从网上扣的,大致报错信息是一致的。我是用hdfs-indexer向solr同步全量索引数据时候报的错。

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at https://172.20.32.48:21101/solr: no segments* file found in NRTCachingDirectory(MMapDirectory@/opt/huawei/Bigdata/nodeagent/hdfs:/hacluster/user/solr/test/results/part-00000/data/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@537fd381; maxCacheMB=48.0 maxMergeSizeMB=4.0): files: []

at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:566)

at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:237)

at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:229)

at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)

at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:152)

at org.apache.solr.hadoop.ForkedGoLive$1.call(ForkedGoLive.java:125)

at org.apache.solr.hadoop.ForkedGoLive$1.call(ForkedGoLive.java:98)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

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)

其实这个问题, 这个错误,solr存索引存储在本地磁盘。
解决办法也很简单.
进入华为集群平台管理中,有一个solr服务配置参数,index_stored_on_hdfs 这个配置参数调为true,然后同步配置,重启服务,就好了,这就是索引存放问题,需要打开允许存在hdfs上。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值