bin=/soft/elasticsearch-jdbc-2.3.3.1/bin
lib=/soft/elasticsearch-jdbc-2.3.3.1/lib
echo ${bin}
echo ${lib}
echo '{
"type" : "jdbc",
"jdbc": {
"elasticsearch.autodiscover":true,
"elasticsearch.cluster":"my-application", #簇名,详见:/usr/local/elasticsearch/config/elasticsearch.yml
"url":"jdbc:mysql://192.168.1.5:3306/test", #mysql数据库地址
"user":"root", #mysql用户名
"password":"123456", #mysql密码
"sql":"select * from esuser",
"elasticsearch" : {
"host" : "192.168.1.11",
"port" : 9300
},
"index" : "myindex", #新的index
"type" : "mytype" #新的type
}
}'| java -cp "${bin}/*" -Dlog4j.configurationFile=${bin}/log4j2.xml org.xbib.tools.Runner org.xbib.tools.JDBCImporter
Error: Could not find or load main class org.xbib.tools.Runner
lib=/soft/elasticsearch-jdbc-2.3.3.1/lib
echo ${bin}
echo ${lib}
echo '{
"type" : "jdbc",
"jdbc": {
"elasticsearch.autodiscover":true,
"elasticsearch.cluster":"my-application", #簇名,详见:/usr/local/elasticsearch/config/elasticsearch.yml
"url":"jdbc:mysql://192.168.1.5:3306/test", #mysql数据库地址
"user":"root", #mysql用户名
"password":"123456", #mysql密码
"sql":"select * from esuser",
"elasticsearch" : {
"host" : "192.168.1.11",
"port" : 9300
},
"index" : "myindex", #新的index
"type" : "mytype" #新的type
}
}'| java -cp "${bin}/*" -Dlog4j.configurationFile=${bin}/log4j2.xml org.xbib.tools.Runner org.xbib.tools.JDBCImporter
Error: Could not find or load main class org.xbib.tools.Runner
2 个回复
liunique
赞同来自:
Debuggingzhw
赞同来自:
我在cygwin进行调试的