博客分类: elasticsearch
elasticsearchesmarvelsqljdbc
1. install jdk1.8
2. edit hosts
3. install elasticsearch
a) tar –xvf elasticsearch-2.3.3.tar.gz
b) edit /etc/profile,append ES_HOME
c) edit elasticsearch.yml
Yml代码 复制代码 收藏代码
cluster.name: mysearch
node.name: yournodename
node.master: false
network.host: yourhost
http.port: 9200
cluster.name: mysearch
node.name: yournodename
node.master: false
network.host: yourhost
http.port: 9200d) edit elasticsearch.in.sh
Shell代码 复制代码 收藏代码
ES_MIN_MEM=2G
ES_MAX_MEM=2G
ES_MIN_MEM=2G
ES_MAX_MEM=2G 4. install elasticsearch-head plugin
a) $ES_HOME/bin/plugin install mobz/elasticsearch-head
b) Navigate to http://yourhost:9200/_plugin/head/
5. install kibana plugin
a) tar –xvf kibana-4.5.1-linux-x64.tar.gz
b) Open config/kibana.yml in an editor
c) Set the elasticsearch.url to point at your Elasticsearch instance
d) Run ./bin/kibana
e) Point your browser at http://yourhost.com:5601
f) point: edit kibana.yml
vi /opt/kibana-4.3.1-linux-x64/config/kibana.yml
Yml代码 复制代码 收藏代码
server.port: 5601
server.host: "yourhost"
elasticsearch.url: http://yourhost:9200
server.port: 5601
server.host: "yourhost"
elasticsearch.url: http://yourhost:92006. install marvel plugin
a) Install Marvel into Elasticsearch: bin/plugin install license
b) bin/plugin install marvel-agent
c) Install Marvel into Kibana, bin/kibana plugin --install elasticsearch/marvel/latest
d) Start Elasticsearch and Kibana bin/elasticsearch
e) bin/kibana
f) Navigate to http://yourhost:5601/app/marvel
7. install sense plugin
a) Install Marvel into Kibana, bin/kibana plugin --install elastic/sense
b) Navigate to http://yourhost:5601/app/sense
8. install sql plugin
a) copy elasticsearch-sql-2.3.3.0.zip to $ES_HOME
b) cd $ES_HOME
c) /bin/plugin install file:elasticsearch-sql-2.3.3.0.zip
d) Navigate to http://yourhost:9200/_plugin/sql/
9. install jdbc
a) download the JDBC importer distribution
wget http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/ 2.3.3.1 /elasticsearch-jdbc- 2.3.3.1 -dist.zip
b) unpack
unzip elasticsearch-jdbc-2.3.3.1-dist.zip
c) go to the unpacked directory (we call it $JDBC_IMPORTER_HOME) cd elasticsearch-jdbc-2.3.3.1; if you do not find the JDBC driver jar in the lib directory, download it from your vendor's site and put the driver jar into the lib folder
d) modify script in the bin directory to your needs (Elasticsearch cluster address)
e) run script with a command that starts org.xbib.tools.JDBCImporter with the lib directory on the classpath
elasticsearchesmarvelsqljdbc
1. install jdk1.8
2. edit hosts
3. install elasticsearch
a) tar –xvf elasticsearch-2.3.3.tar.gz
b) edit /etc/profile,append ES_HOME
c) edit elasticsearch.yml
Yml代码 复制代码 收藏代码
cluster.name: mysearch
node.name: yournodename
node.master: false
network.host: yourhost
http.port: 9200
cluster.name: mysearch
node.name: yournodename
node.master: false
network.host: yourhost
http.port: 9200d) edit elasticsearch.in.sh
Shell代码 复制代码 收藏代码
ES_MIN_MEM=2G
ES_MAX_MEM=2G
ES_MIN_MEM=2G
ES_MAX_MEM=2G 4. install elasticsearch-head plugin
a) $ES_HOME/bin/plugin install mobz/elasticsearch-head
b) Navigate to http://yourhost:9200/_plugin/head/
5. install kibana plugin
a) tar –xvf kibana-4.5.1-linux-x64.tar.gz
b) Open config/kibana.yml in an editor
c) Set the elasticsearch.url to point at your Elasticsearch instance
d) Run ./bin/kibana
e) Point your browser at http://yourhost.com:5601
f) point: edit kibana.yml
vi /opt/kibana-4.3.1-linux-x64/config/kibana.yml
Yml代码 复制代码 收藏代码
server.port: 5601
server.host: "yourhost"
elasticsearch.url: http://yourhost:9200
server.port: 5601
server.host: "yourhost"
elasticsearch.url: http://yourhost:92006. install marvel plugin
a) Install Marvel into Elasticsearch: bin/plugin install license
b) bin/plugin install marvel-agent
c) Install Marvel into Kibana, bin/kibana plugin --install elasticsearch/marvel/latest
d) Start Elasticsearch and Kibana bin/elasticsearch
e) bin/kibana
f) Navigate to http://yourhost:5601/app/marvel
7. install sense plugin
a) Install Marvel into Kibana, bin/kibana plugin --install elastic/sense
b) Navigate to http://yourhost:5601/app/sense
8. install sql plugin
a) copy elasticsearch-sql-2.3.3.0.zip to $ES_HOME
b) cd $ES_HOME
c) /bin/plugin install file:elasticsearch-sql-2.3.3.0.zip
d) Navigate to http://yourhost:9200/_plugin/sql/
9. install jdbc
a) download the JDBC importer distribution
wget http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/ 2.3.3.1 /elasticsearch-jdbc- 2.3.3.1 -dist.zip
b) unpack
unzip elasticsearch-jdbc-2.3.3.1-dist.zip
c) go to the unpacked directory (we call it $JDBC_IMPORTER_HOME) cd elasticsearch-jdbc-2.3.3.1; if you do not find the JDBC driver jar in the lib directory, download it from your vendor's site and put the driver jar into the lib folder
d) modify script in the bin directory to your needs (Elasticsearch cluster address)
e) run script with a command that starts org.xbib.tools.JDBCImporter with the lib directory on the classpath