elasticsearch以及其常用插件安装

博客分类: 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值