以 PB 级数据即时搜索 [英] instant searching in petabyte of data

查看:29
本文介绍了以 PB 级数据即时搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 CSV 格式文件中搜索超过 PB 的数据.使用 LUCENE 索引后,索引文件的大​​小是原始文件的两倍.是否可以减少索引文件的大​​小???如何在HADOOP中分发LUCENE索引文件以及如何在搜索环境中使用?还是有必要,我应该使用 solr 来分发 LUCENE 索引吗???我的要求是对 PB 级文件进行即时搜索....

I need to search over petabyte of data in CSV formate files. After indexing using LUCENE, the size of the indexing file is doubler than the original file. Is it possible to reduce the indexed file size??? How to distribute LUCENE index files in HADOOP and how to use in searching environment? or is it necessary, should i use solr to distribute the LUCENE index??? My requirement is doing instant search over petabyte of files....

推荐答案

任何不错的现成搜索引擎(如 Lucene)都应该能够提供针对您拥有的数据大小的搜索功能.您可能需要预先做一些工作来设计索引并配置搜索的工作方式,但这只是配置.

Any decent off the shelf search engine (like Lucene) should be able to provide search functionality over the size of data you have. You may have to do a bit of work up front to design the indexes and configure how the search works, but this is just config.

您不会立即获得结果,但您可能能够非常快地获得结果.速度可能取决于您的设置方式以及运行的硬件类型.

You won't get instant results but you might be able to get very quick results. The speed will probably depend on how you set it up and what kind of hardware you run on.

您提到索引比原始数据大.这是可以预料的.索引通常包括某种形式的非规范化.索引的大小通常是与速度的权衡;提前对数据进行切片和切块的方式越多,找到参考的速度就越快.

You mention that the indexes are larger than the original data. This is to be expected. Indexing usually includes some form of denormalisation. The size of the indexes is often a trade off with speed; the more ways you slice and dice the data in advance, the quicker it is to find references.

最后您提到分发索引,这几乎肯定不是您想做的事情.分发大量 PB 数据的实用性非常令人生畏.您可能想要的是将索引放置在某处的大型计算机上,并提供对数据的搜索服务(将查询带到数据中,不要将数据带到查询中).

Lastly you mention distributing the indexes, this is almost certainly not something you want to do. The practicalities of distributing many petabytes of data are pretty daunting. What you probably want is to have the indexes sat on a big fat computer somewhere and provide search services on the data (bring the query to the data, don't take the data to the query).

这篇关于以 PB 级数据即时搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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