Linux安裝Elasticsearch與MongoDB分布式叢集環境下資料同步

來源:互聯網
上載者:User

標籤:

Elasticsearch有一個叫做river的外掛程式式模組,可以將外部資料源中的資料匯入elasticsearch並在上面建立索引。River在叢集上是單例模式的,它被自動分配到一個節點上,當這個節點掛掉後,river會被自動分配到另外的一個節點上。目前支援的資料來源包括:Wikipedia, MongoDB, CouchDB, RabbitMQ, RSS, Sofa, JDBC, FileSystem,Dropbox等。River有一些指定的規範,依照這些規範可以開發適合於自己的應用資料的外掛程式。

1、安裝MongoDB的River:https://github.com/richardwilly98/elasticsearch-river-mongodb、http://blog.csdn.net/huwei2003/article/details/40407555

git clone https://github.com/richardwilly98/elasticsearch-river-mongodb.gitcd elasticsearch-river-mongodb
git tag
git checkout elasticsearch-river-mongodb-2.0.5
mvn cleanmvn compilemvn package

vim install-local.sh --把plugin --remove 改成 plugin remove;注釋掉最後一行sudo命令,因為沒有plugin命令的url參數了。
./install-local.sh 
cd target/releases/

Linux安裝Elasticsearch與MongoDB分布式叢集環境下資料同步

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.