如何从solr和hbase中删除所有数据 [英] How to delete all data from solr and hbase

查看:28
本文介绍了如何从solr和hbase中删除所有数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过命令从 solr 中删除所有数据?我们将 solrlily<​​/code> 和 hbase 一起使用.

How do I delete all data from solr by command? We are using solr with lily and hbase.

如何同时从 hbase 和 solr 中删除数据?

How can I delete data from both hbase and solr?

http://lucene.apache.org/solr/4_10_0/tutorial.html#Deleting+数据

推荐答案

如果要清理 Solr 索引 -

If you want to clean up Solr index -

你可以触发 http url -

you can fire http url -

http://host:port/solr/[core name]/update?stream.body=<delete><query>*:*</query></delete>&commit=true

(将 [core name] 替换为要从中删除的核心的名称).或者在发布数据xml数据时使用它:

(replace [core name] with the name of the core you want to delete from). Or use this if posting data xml data:

<delete><query>*:*</query></delete>

确保使用 commit=true 提交更改

不过对清除 hbase 数据不太了解.

Don't have much idea with clearing hbase data though.

这篇关于如何从solr和hbase中删除所有数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆