Guest User

Untitled

a guest
Aug 21st, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. echo '{
  2. "type":"jdbc",
  3. "jdbc":{
  4.  
  5. "url":"jdbc:mysql://localhost:3306/finalportal",
  6. "user":"root",
  7. "password":"HiddenPassowrd",
  8. "sql":"SELECT id as _id,* FROM deductions",
  9. "index":"jappantest",
  10. "type":"users",
  11. "autocommit":"true",
  12. "metrics": {
  13. "enabled" : true
  14. },
  15. "elasticsearch" : {
  16. "cluster" : "elasticsearch",
  17. "host" : "localhost",
  18. "port" : 9200
  19. }
  20. }
  21. }' | 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