0

I'm trying to setup the feeder following this instruction https://github.com/jprante/elasticsearch-jdbc#installation I downloaded and unzipped the feeder
I don't quite understand this step:

run script with a command that starts org.xbib.tools.JDBCImporter with the lib directory on the classpath

what am I suppposed to do?

if I try to run a sample script from bin I get:

Bad substitution
Error: Could not find or load main class org.xbib.elasticsearch.plugin.jdbc.feeder.Runner

where do I get the java classes org.xbib.elasticsearch.plugin.jdbc.feeder.Runner \ org.xbib.elasticsearch.plugin.jdbc.feeder.JDBCFeeder?

4

1 回答 1

0

找出解决方案
是在脚本中设置安装文件夹(不是elasticsearch文件夹而是jdbc文件夹!)

#!/bin/bash
#JDBC Directory -> important, change accordingly!
export JDBC_IMPORTER_HOME=~/Downloads/elasticsearch-jdbc-1.6.0.0

bin=$JDBC_IMPORTER_HOME/bin
lib=$JDBC_IMPORTER_HOME/lib
echo '{

          ...
          ...

    }
}' | java \
       -cp "${lib}/*" \
       -Dlog4j.configurationFile=${bin}/log4j2.xml \
       org.xbib.tools.Runner \
       org.xbib.tools.JDBCImporter
于 2015-06-17T14:40:21.013 回答