Solandra:基于Solr和Cassandra的實(shí)時(shí)分布式搜索引擎
Solandra,從別名上就能看出來,其實(shí)它就是結(jié)合了 Solr 與 Cassandra 的實(shí)時(shí)搜索引擎程序。
其特性如下:
•支持Solr的大多數(shù)默認(rèn)特性 (search, faceting, highlights)
•數(shù)據(jù)復(fù)制,分片,緩存及壓縮這些都由Cassandra來進(jìn)行
•Multi-master (任意結(jié)點(diǎn)都可供讀寫)
•實(shí)時(shí)性高,寫操作完成即可讀到
•Easily add new SolrCores w/o restart across the cluster 輕松添加及重啟結(jié)點(diǎn)
這是來自官方的介紹:
Solandra is a real-time distributed search engine built on Apache Solr and Apache Cassandra.
At its core, Solandra is a tight integration of Solr and Cassandra, meaning within a single JVM both Solr and Cassandra are running, and documents are stored and disributed using Cassandra's data model.
Solandra makes managing and dynamically growing Solr simple(r).
For more information please see the wiki
Requirements:
Java >= 1.6
Features:
•Supports most out-of-the-box Solr functionality (search, faceting, highlights)
•Replication, sharding, caching, and compaction managed by Cassandra
•Multi-master (read/write to any node)
•Writes become available as soon as write succeeds
•Easily add new SolrCores w/o restart across the cluster
Getting started:
The following will guide you through setting up a single node instance of Solandra.
From the Solandra base directory:
mkdir /tmp/cassandra-data ant cd solandra-app; bin/solandra Now that Solandra is running you can run the demo:
cd http://www.cnblogs.com/reuters-demo ./1-download_data.sh ./2-import_data.sh While data is loading, open the file ./website/index.html in your favorite browser. Embedding in an existing cassandra distribution
To use an existing Cassandra distribution perform the following steps.
•Download your Cassandra distribution
•Unzip it the directory of your choice
•Run the following solandra ant task to deploy the necessary files into the unzipped dir
ant -Dcassandra={unzipped dir} cassandra-dist
•You can now start Solr within Cassandra by using $CASSANDRA_HOME/bin/solandra command. Cassandra now takes two optional properties: -Dsolandra.context and -Dsolandra.port for the context path and the Jetty port.
Limitations
Solandra uses Solr's built in distributed searching meachanism. Most of its limitations are covered here:
http://wiki.apache.org/solr/Dist ... arching_Limitations |