DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Play Meteor with Elasticsearch


Install elasticsearch;

Follow the instructions in meteor-elasticsearch

Choose plugin version according to https://github.com/richardwilly98/elasticsearch-river-mongodb.

Get elasticsearch version: curl -XGET 'localhost:9200'

So mongo river plugin version 2.0.9 is installed:

cd /usr/share/elasticsearch
sudo bin/plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.0
sudo bin/plugin --remove com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.0
sudo bin/plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.9

Start elasticsearch server: sudo /usr/share/elasticsearch/bin/elasticsearch --default.path.conf=/etc/elasticsearch/

Create a Meteor app with external mongodb connection, and verify it;

Add ES package: meteor add bigdata:elasticsearch;

Add the setting file "settings.json";

Start the meteor server: MONGO_URL="mongodb://user:pwd@ip:port/db" meteor --settings settings.json

Problem: the ES variable is undefined.



Published

Oct 28, 2015

Last Updated

Oct 28, 2015

Category

Tech

Tags

  • elasticsearch 6
  • meteor 47

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor