Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo '{
- "type":"jdbc",
- "jdbc":{
- "url":"jdbc:mysql://localhost:3306/finalportal",
- "user":"root",
- "password":"HiddenPassowrd",
- "sql":"SELECT id as _id,* FROM deductions",
- "index":"jappantest",
- "type":"users",
- "autocommit":"true",
- "metrics": {
- "enabled" : true
- },
- "elasticsearch" : {
- "cluster" : "elasticsearch",
- "host" : "localhost",
- "port" : 9200
- }
- }
- }' | java -cp "/home/jappan/elasticsearch-jdbc-1.7.3.0/lib/*" -"Dlog4j.configurationFile=file:////home/jappan/elasticsearch-jdbc-1.7.3.0/bin/log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"
Add Comment
Please, Sign In to add comment