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.