Jdbc importer not working


(gowtham) #1

@echo off

set DIR=%~dp0
set LIB=%DIR%..\lib*
set BIN=%DIR%..\bin

REM ???
echo '{^
"type" : "jdbc",^
"jdbc" : {^
"url" : "jdbc:mysql://localhost:3306/emplo",^
"user" : "root",^
"password" : "root",^
"sql" : "select , id as _id,id,username from empl",^
"elasticsearch" : {^
"cluster" : "elasticsearch",^
"host" : "localhost",^
"port" : 9200^
},^
"index" : "data",^
"type":"da",^
},^
},^ '| "C:\Program Files\Java\jdk1.8.0_131\bin\java" -cp "C:\elastic\elasticsearch-jdbc-2.3.2.0\lib/
" -Dlog4j.configurationFile="C:\elastic\elasticsearch-jdbc-2.3.2.0\bin\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"

i am using windows 8 elastic search 2.3.2 and elastic-jdbc 2.3.2.0


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.