We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elasticsearch-1.7.1 elasticsearch-jdbc-1.7.1
https://github.com/jprante/elasticsearch-jdbc
http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/1.7.1.0/elasticsearch-jdbc-1.7.1.0-dist.zip
该插件不需要安装,直接解压即可。
注: 使用该插件时需要禁用shield插件 windows平台下使用时需要修改其示例脚本
shield
@echo off set DIR=%~dp0 set LIB="%DIR%\..\lib\*" set BIN="%DIR%\..\bin\*" REM ??? echo {^ "type" : "jdbc",^ "jdbc" : {^ "url" : "jdbc:mysql://localhost:3306/xiaoboedu",^ "user" : "root",^ "password" : "root",^ "sql" : "SELECT title,subtitle FROM course",^ "autocommit" : true,^ "treat_binary_as_string" : true,^ "elasticsearch" : {^ "cluster" : "elasticsearch",^ "host" : "localhost",^ "port" : 9300^ },^ "index" : "course",^ "type" : "course"^ }^ }^ | "%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="file://%DIR%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"
其具体使用及配置参见https://github.com/jprante/elasticsearch-jdbc
@echo off set DIR=%~dp0 set LIB="%DIR%\..\lib\*" set BIN="%DIR%\..\bin\*" REM ??? echo {^ "type" : "jdbc",^ "jdbc" : {^ "url" : "jdbc:mysql://localhost:3306/news",^ "user" : "root",^ "password" : "root",^ "sql" : [^ {"statement":"SELECT title,content,url,source,author,pubdate FROM news"},^ {^ "statement":"SELECT title,content,url,source,author,pubdate FROM news where pubdate > ?",^ "parameter" : [ "$metrics.lastexecutionstart" ]^ }^ ],^ "autocommit" : true,^ "treat_binary_as_string" : true,^ "elasticsearch" : {^ "cluster" : "elasticsearch",^ "host" : "localhost",^ "port" : 9300^ },^ "index" : "news",^ "type" : "article"^ }^ }^ | "%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="file://%DIR%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"
The text was updated successfully, but these errors were encountered:
请问你在使用这个插件过程中是否出现过以下情况: 我在虚拟机中虚拟了一个window2008的环境,完整使用了该插件,数据导入正常。 我直接拷贝es跟es-jdbc插件到另一台线上windows2008环境中,程序依然能正常执行,但是每次数据数目都不正确,一会多一会少。执行一会就会提示执行完毕,而且没有报错信息。
Sorry, something went wrong.
我也遇到了同样的问题,全量更新没有问题,增量更新总是少数据
No branches or pull requests
https://github.com/jprante/elasticsearch-jdbc
http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/1.7.1.0/elasticsearch-jdbc-1.7.1.0-dist.zip
该插件不需要安装,直接解压即可。
注:
使用该插件时需要禁用
shield
插件windows平台下使用时需要修改其示例脚本
其具体使用及配置参见https://github.com/jprante/elasticsearch-jdbc
The text was updated successfully, but these errors were encountered: