# Trouble generating CouchDb river

**URL:** <https://discuss.elastic.co/t/trouble-generating-couchdb-river/6829>\
**Category:** Elasticsearch\
**Created:** [February 28, 2012, 11:16am UTC](https://discuss.elastic.co/t/trouble-generating-couchdb-river/6829 "2012-02-28T11:16:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian\_mayo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ian_mayo/32/2324_2.png) [@ian\_mayo](https://discuss.elastic.co/u/ian_mayo)\
**Post date:** [February 28, 2012, 11:16am UTC](https://discuss.elastic.co/t/trouble-generating-couchdb-river/6829/1 "2012-02-28T11:16:49Z")

</div>

Hi all,  
been battling with this all day. Ultimately I'm suffering from  
NoClassDefFoundError for BulkRequestLoader. When I look in the jar  
I can't find it.

Here's how I get to the problem:

Install couchdb-river:

> bin/plugin -install elasticsearch/elasticsearch-river-couchdb/1.1.0

Start elasticsearch:

> bin/elasticsearch -f

Responds with:  
[2012-02-28 11:00:17,933][INFO][node] [Leir]  
{0.18.7}[1508]: initializing ...  
[2012-02-28 11:00:17,948][INFO][plugins] [Leir]  
loaded [river-couchdb], sites   
[2012-02-28 11:00:20,031][INFO][node] [Leir]  
{0.18.7}[1508]: initialized

Now for CouchDb.

I have initialisation file:  
{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "localhost",  
"port" : 5984,  
"db" : "tracks",  
"filter" : null  
},  
"index" : {  
"index" : "tracks",  
"type" : "tracks",  
"bulk\_size" : "100",  
"bulk\_timeout" : "10ms"  
}  
}

I load it with:

> curl -T "{../init\_file}" -XPUT 'localhost:9200/\_river/tracks/\_meta'

But, I see elasticsearch respond with:  
[2012-02-28 11:00:46,213][INFO][cluster.metadata] [Leir]  
[\_river] creating index, cause [auto(index api)], shards [1]/[1],  
mappings   
[2012-02-28 11:00:46,621][INFO][cluster.metadata] [Leir]  
[\_river] update\_mapping [tracks] (dynamic)  
[2012-02-28 11:00:46,703][WARN][river] [Leir]  
failed to create river [couchdb][tracks]  
org.elasticsearch.common.collect.ComputationException:  
java.lang.NoClassDefFoundError: org/elasticsearch/action/bulk/  
BulkRequestBuilder  
at org.elasticsearch.common.collect.ComputingConcurrentHashMap  
$ComputingValueReference.compute(ComputingConcurrentHashMap.java:325)  
at org.elasticsearch.common.collect.ComputingConcurrentHashMap  
$ComputingSegment.compute(ComputingConcurrentHashMap.java:140)  
..  
Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/action/  
bulk/BulkRequestBuilder  
at java.lang.Class.getDeclaredMethods0(Native Method)  
..  
Caused by: java.lang.ClassNotFoundException:  
org.elasticsearch.action.bulk.BulkRequestBuilder  
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)  
at java.security.AccessController.doPrivileged(Native Method)

Now, if I close/restart Elasticsearch I get the same exceptions thrown/  
reported.

---

<div class="post-metadata">

**Author:** ![ian\_mayo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ian_mayo/32/2324_2.png) [@ian\_mayo](https://discuss.elastic.co/u/ian_mayo)\
**Post date:** [February 28, 2012, 11:23am UTC](https://discuss.elastic.co/t/trouble-generating-couchdb-river/6829/2 "2012-02-28T11:23:06Z")

</div>

Note: investigated further. BulkRequestLoader is in the source-repo,  
so I downloaded 0.19RC. The CouchDb river plugin works fine with  
this.

I'm now happily searching dozens of docs. Hooray.

I now realise the GitHub docs do clearly explain this (0.19 -\> 1.1.0,  
0.18 -\> 1.0.0)

My bad.

Ian

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:38am UTC](https://discuss.elastic.co/t/trouble-generating-couchdb-river/6829/3 "2017-07-06T03:38:02Z")

</div>


