-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: pom.xml
- Loading branch information
Showing
14 changed files
with
192 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# for feeder | ||
|
||
log4j.rootLogger=DEBUG, out | ||
|
||
log4j.appender.out=org.apache.log4j.ConsoleAppender | ||
log4j.appender.out.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.out.layout.ConversionPattern=[%d{ABSOLUTE}][%-5p][%-25c][%t] %m%n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@echo off | ||
|
||
SETLOCAL | ||
|
||
if NOT DEFINED ES_HOME goto err | ||
|
||
set DIR=%~dp0 | ||
|
||
set FEEDER_CLASSPATH=%DIR%/* | ||
|
||
REM ??? | ||
echo {^ | ||
"elasticsearch" : {^ | ||
"cluster" : "elasticsearch",^ | ||
"host" : "localhost",^ | ||
"port" : 9300^ | ||
},^ | ||
"type" : "jdbc",^ | ||
"jdbc" : {^ | ||
"url" : "jdbc:mysql://localhost:3306/test",^ | ||
"user" : "",^ | ||
"password" : "",^ | ||
"sql" : "select *, page_id as _id from page",^ | ||
"treat_binary_as_string" : true,^ | ||
"index" : "metawiki"^ | ||
}^ | ||
} | ||
|
||
"%JAVA_HOME%\bin\java" -cp "%FEEDER_CLASSPATH%" "org.xbib.elasticsearch.plugin.jdbc.feeder.Runner" "org.xbib.elasticsearch.plugin.jdbc.feeder.JDBCFeeder" | ||
goto finally | ||
|
||
:err | ||
echo JAVA_HOME and ES_HOME environment variable must be set! | ||
pause | ||
|
||
|
||
:finally | ||
|
||
ENDLOCAL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# ES_HOME reguired to detect elasticsearch jars | ||
export ES_HOME=~es/elasticsearch-1.4.0.Beta1 | ||
|
||
echo ' | ||
{ | ||
"elasticsearch" : { | ||
"cluster" : "elasticsearch", | ||
"host" : "localhost", | ||
"port" : 9300 | ||
}, | ||
"type" : "jdbc", | ||
"jdbc" : { | ||
"url" : "jdbc:mysql://localhost:3306/test", | ||
"user" : "", | ||
"password" : "", | ||
"sql" : "select *, page_id as _id from page", | ||
"treat_binary_as_string" : true, | ||
"index" : "metawiki" | ||
} | ||
} | ||
' | java \ | ||
-cp "${DIR}/*" \ | ||
org.xbib.elasticsearch.plugin.jdbc.feeder.Runner \ | ||
org.xbib.elasticsearch.plugin.jdbc.feeder.JDBCFeeder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.