github上的步骤:https://github.com/jprante/elasticsearch-jdbc
wget下载安装包
1. # wget http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/<version>/elasticsearch-jdbc-<version>-dist.zip
解压安装包
2. #
unzip elasticsearch-jdbc-<version>-dist.zip
其中的
换成版本 2.3.3 就好了。<version>
3.设置环境变量
# vi /etc/profile
输入内容:export JDBC_IMPORTER_HOME=/elasticsearch-jdbc-2.3.3
4.使变量生效
# source /etc/profile