Hi Jörg,
Here is the data that I put into my tables.
Insert into PERSON (PERSON_ID, PERSON_NAME) Values (1, 'Person1');
Insert into PERSON (PERSON_ID, PERSON_NAME) Values (2, 'Person2');
COMMIT;
Insert into WORK (WORK_ID, PERSON_ID, WORK_NAME, GENRE, PUBLISHER)
Values (1, 1, 'P1Book1', 'Fiction', 'MyHouse');
Insert into WORK (WORK_ID, PERSON_ID, WORK_NAME, GENRE, PUBLISHER)
Values (2, 1, 'P1Book2', 'Non-Fiction', 'MyHouse');
Insert into WORK (WORK_ID, PERSON_ID, WORK_NAME, GENRE, PUBLISHER)
Values (3, 2, 'P2Book1', 'Fiction', 'MyHouse');
Insert into WORK (WORK_ID, PERSON_ID, WORK_NAME, GENRE, PUBLISHER)
Values (4, 2, 'P2Book2', 'Non-Fiction', 'MyHouse');
COMMIT;
The only entries that I see in the elasticsearch logs are shown below. I do
not get any exception stack trace.
[2013-05-17 10:19:59,123][INFO ][cluster.metadata ] [ESNode1]
[_river] creating index, cause [auto(index api)], shards [1]/[1], mappings
[2013-05-17 10:19:59,295][INFO ][cluster.metadata ] [ESNode1]
[_river] update_mapping [person] (dynamic)
[2013-05-17 10:19:59,308][DEBUG][river.jdbc ] [ESNode1]
[jdbc][person] found river source
org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource for strategy
simple
[2013-05-17 10:19:59,310][DEBUG][river.jdbc ] [ESNode1]
[jdbc][person] found river target
org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverMouth for strategy
simple
[2013-05-17 10:19:59,311][INFO
][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverMouth] waiting
for cluster...
[2013-05-17 10:19:59,313][DEBUG][river.jdbc ] [ESNode1]
[jdbc][person] found river task
org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow for strategy
simple
[2013-05-17 10:19:59,314][INFO ][river.jdbc ] [ESNode1]
[jdbc][person] starting JDBC river: URL
[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myserver)(PORT=10000)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MYDB)))],
driver [oracle.jdbc.OracleDriver], strategy [simple], index
[jdbcriver_person]/[jdbc]
[2013-05-17 10:19:59,377][INFO ][cluster.metadata ] [ESNode1]
[jdbcriver_person] creating index, cause [api], shards [5]/[1], mappings
[2013-05-17 10:19:59,597][INFO ][cluster.metadata ] [ESNode1]
[_river] update_mapping [person] (dynamic)
[2013-05-17 10:19:59,633][INFO
][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverSource] merged 2
rows
[2013-05-17
10:19:59,633][DEBUG][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow]
{"jdbc":{"created":"2013-05-17T14:19:59.315Z","version":1,"digest":"2Mq+WYAP7eWwiikKMAlUPvrn8V3g65I855gkUWl0ZNE="}}
[2013-05-17 10:19:59,644][INFO
][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverFlow] next run,
waiting 1.6h
[2013-05-17 10:19:59,647][INFO ][cluster.metadata ] [ESNode1]
[_river] update_mapping [person] (dynamic)
[2013-05-17 10:20:00,313][INFO
][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverMouth] new bulk
[1] of [2 items], 1 outstanding bulk requests
[2013-05-17 10:20:00,321][INFO
][org.elasticsearch.river.jdbc.strategy.simple.SimpleRiverMouth] bulk [1]
success [2 items] [8ms]
[2013-05-17 10:20:00,324][INFO ][cluster.metadata ] [ESNode1]
[jdbcriver_person] update_mapping [jdbc] (dynamic)
[2013-05-17 10:20:12,268][INFO ][cluster.metadata ] [ESNode1]
[_river] create_mapping [work]
On Thursday, 16 May 2013 20:26:39 UTC-4, Jörg Prante wrote:
Your data for a child document is not enough to fulfil the routing (the
parent id in that case).
Can you please gist the stacktrace of the exception? And some example
data so I can better reproduce?
Thanks,
Jörg
Am 16.05.13 20:13, schrieb A Daniel:
But when I run the below command, I get a
RoutingMissingException[routing is required for [_river]/[work]/[_meta].
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.