# Elasticsearch couchdb-river startup issues

**URL:** <https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799>\
**Category:** Elasticsearch\
**Created:** [July 16, 2013, 2:44am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799 "2013-07-16T02:44:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Gupta\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akash_gupta_2/32/2231_2.png) [@Akash\_Gupta\_2](https://discuss.elastic.co/u/Akash_Gupta_2)\
**Post date:** [July 16, 2013, 2:44am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/1 "2013-07-16T02:44:16Z")

</div>

Guys, I am getting this in my startup logs -

[couchdb][my\_river] failed to read from \_changes, throttling....  
java.lang.IllegalArgumentException: URI can't be null. at  
sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at  
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925)  
at  
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)  
at  
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)  
at  
org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468)  
at java.lang.Thread.run(Thread.java:722)

Any idea which URI is this error talking about?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 16, 2013, 3:48am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/2 "2013-07-16T03:48:49Z")

</div>

You probably did not define properly host/port:

curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null }, "index" : { "index" : "my\_db", "type" : "my\_db", "bulk\_size" : "100", "bulk\_timeout" : "10ms" } }'

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :

> Guys, I am getting this in my startup logs -
> 
> [couchdb][my\_river] failed to read from \_changes, throttling.... java.lang.IllegalArgumentException: URI can't be null. at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468) at java.lang.Thread.run(Thread.java:722)
> 
> ## Any idea which URI is this error talking about?
> 
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Akash\_Gupta\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akash_gupta_2/32/2231_2.png) [@Akash\_Gupta\_2](https://discuss.elastic.co/u/Akash_Gupta_2)\
**Post date:** [July 16, 2013, 5:49am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/3 "2013-07-16T05:49:04Z")

</div>

I did -

curl -XPUT '  
[http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/\_river/my\_river/\_meta](http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta)'  
-d '{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "[http://gnd.iriscouch.com](http://gnd.iriscouch.com)",  
"port" : 5984,  
"db" : "tracks",  
"filter" : null,  
"ignore\_attachments" : true,  
"view" : "tracks/\_view/metadata"  
},  
"index" : {  
"index" : "data",  
"type" : "dataset",  
"bulk\_size" : "100",  
"bulk\_timeout" : "10ms"  
}  
}'

On Tue, Jul 16, 2013 at 9:18 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> You probably did not define properly host/port:
> 
> curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "localhost",  
> "port" : 5984,  
> "db" : "my\_db",  
> "filter" : null  
> },  
> "index" : {  
> "index" : "my\_db",  
> "type" : "my\_db",  
> "bulk\_size" : "100",  
> "bulk\_timeout" : "10ms"  
> }  
> }'
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 16 juil. 2013 à 04:44, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> 
> Guys, I am getting this in my startup logs -
> 
> [couchdb][my\_river] failed to read from \_changes, throttling....  
> java.lang.IllegalArgumentException: URI can't be null. at  
> sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at  
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925)  
> at  
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)  
> at  
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)  
> at  
> org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468)  
> at java.lang.Thread.run(Thread.java:722)
> 
> Any idea which URI is this error talking about?
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 16, 2013, 7:10am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/4 "2013-07-16T07:10:55Z")

</div>

Try without http:// in host field.

BTW, what is the "view" option?  
IIRC it's not merged in master.

Did you build yourself the plugin?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 07:49, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :

> I did -
> 
> curl -XPUT '[http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/\_river/my\_river/\_meta](http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta)' -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "[http://gnd.iriscouch.com](http://gnd.iriscouch.com)",  
> "port" : 5984,  
> "db" : "tracks",  
> "filter" : null,  
> "ignore\_attachments" : true,  
> "view" : "tracks/\_view/metadata"  
> },  
> "index" : {  
> "index" : "data",  
> "type" : "dataset",  
> "bulk\_size" : "100",  
> "bulk\_timeout" : "10ms"  
> }  
> }'
> 
> On Tue, Jul 16, 2013 at 9:18 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > You probably did not define properly host/port:
> > 
> > curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null }, "index" : { "index" : "my\_db", "type" : "my\_db", "bulk\_size" : "100", "bulk\_timeout" : "10ms" } }'
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 16 juil. 2013 à 04:44, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> > 
> > > Guys, I am getting this in my startup logs -
> > > 
> > > [couchdb][my\_river] failed to read from \_changes, throttling.... java.lang.IllegalArgumentException: URI can't be null. at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468) at java.lang.Thread.run(Thread.java:722)
> > > 
> > > ## Any idea which URI is this error talking about?
> > > 
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Akash\_Gupta\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akash_gupta_2/32/2231_2.png) [@Akash\_Gupta\_2](https://discuss.elastic.co/u/Akash_Gupta_2)\
**Post date:** [July 16, 2013, 7:38am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/5 "2013-07-16T07:38:50Z")

</div>

Yup, removing http:// helped.

view is couchdb mapreduce function (I think we call it that), which will  
give us search results in required format. It looks something like this -

```
   "map": "function (doc) { emit(doc._id, doc.metadata);}"

```

Thanks David!

On Tue, Jul 16, 2013 at 12:40 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Try without http:// in host field.
> 
> BTW, what is the "view" option?  
> IIRC it's not merged in master.
> 
> Did you build yourself the plugin?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 16 juil. 2013 à 07:49, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> 
> I did -
> 
> curl -XPUT '  
> [http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/\_river/my\_river/\_meta](http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta)'  
> -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "[http://gnd.iriscouch.com](http://gnd.iriscouch.com)",  
> "port" : 5984,  
> "db" : "tracks",  
> "filter" : null,  
> "ignore\_attachments" : true,  
> "view" : "tracks/\_view/metadata"  
> },  
> "index" : {  
> "index" : "data",  
> "type" : "dataset",  
> "bulk\_size" : "100",  
> "bulk\_timeout" : "10ms"  
> }  
> }'
> 
> On Tue, Jul 16, 2013 at 9:18 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > You probably did not define properly host/port:
> > 
> > curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{  
> > "type" : "couchdb",  
> > "couchdb" : {  
> > "host" : "localhost",  
> > "port" : 5984,  
> > "db" : "my\_db",  
> > "filter" : null  
> > },  
> > "index" : {  
> > "index" : "my\_db",  
> > "type" : "my\_db",  
> > "bulk\_size" : "100",  
> > "bulk\_timeout" : "10ms"  
> > }  
> > }'
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 16 juil. 2013 à 04:44, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> > 
> > Guys, I am getting this in my startup logs -
> > 
> > [couchdb][my\_river] failed to read from \_changes, throttling....  
> > java.lang.IllegalArgumentException: URI can't be null. at  
> > sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at  
> > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925)  
> > at  
> > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)  
> > at  
> > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)  
> > at  
> > org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468)  
> > at java.lang.Thread.run(Thread.java:722)
> > 
> > Any idea which URI is this error talking about?
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 16, 2013, 8:23am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/6 "2013-07-16T08:23:25Z")

</div>

Yeah. I know what a view is in CouchDb but apart from my own fork, I'm not aware of such an option in the river itself.

Do you build your own river or do you use my fork or something else???

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 09:38, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :

> Yup, removing http:// helped.
> 
> view is couchdb mapreduce function (I think we call it that), which will give us search results in required format. It looks something like this -
> 
> ```
> "map": "function (doc) { emit(doc._id, doc.metadata);}"
> 
> ```
> 
> Thanks David!
> 
> On Tue, Jul 16, 2013 at 12:40 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Try without http:// in host field.
> > 
> > BTW, what is the "view" option?  
> > IIRC it's not merged in master.
> > 
> > Did you build yourself the plugin?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 16 juil. 2013 à 07:49, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> > 
> > > I did -
> > > 
> > > curl -XPUT '[http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/\_river/my\_river/\_meta](http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta)' -d '{  
> > > "type" : "couchdb",  
> > > "couchdb" : {  
> > > "host" : "[http://gnd.iriscouch.com](http://gnd.iriscouch.com)",  
> > > "port" : 5984,  
> > > "db" : "tracks",  
> > > "filter" : null,  
> > > "ignore\_attachments" : true,  
> > > "view" : "tracks/\_view/metadata"  
> > > },  
> > > "index" : {  
> > > "index" : "data",  
> > > "type" : "dataset",  
> > > "bulk\_size" : "100",  
> > > "bulk\_timeout" : "10ms"  
> > > }  
> > > }'
> > > 
> > > On Tue, Jul 16, 2013 at 9:18 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > You probably did not define properly host/port:
> > > > 
> > > > curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null }, "index" : { "index" : "my\_db", "type" : "my\_db", "bulk\_size" : "100", "bulk\_timeout" : "10ms" } }'
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 16 juil. 2013 à 04:44, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> > > > 
> > > > > Guys, I am getting this in my startup logs -
> > > > > 
> > > > > [couchdb][my\_river] failed to read from \_changes, throttling.... java.lang.IllegalArgumentException: URI can't be null. at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468) at java.lang.Thread.run(Thread.java:722)
> > > > > 
> > > > > ## Any idea which URI is this error talking about?
> > > > > 
> > > > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > > > 
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> > > > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Akash\_Gupta\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akash_gupta_2/32/2231_2.png) [@Akash\_Gupta\_2](https://discuss.elastic.co/u/Akash_Gupta_2)\
**Post date:** [July 16, 2013, 8:30am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/7 "2013-07-16T08:30:57Z")

</div>

I didn't know it wasn't supported, i was looking at this link --

> <https://github.com/elastic/elasticsearch-river-couchdb/pull/2>
>
> Moving from https://github.com/elasticsearch/elasticsearch/issues/1512
> 
> Real imp…lementation of pull request https://github.com/elasticsearch/elasticsearch/issues/1258, as there was a problem with GitHub.
> 
> In CouchDB, you can retrieve docs by \`GET\`, \`\_changes\` API and views.
> CouchDB river uses \`\_changes\` API to get documents.
> 
> I would like to be able to get documents that changed (getting ID with the \_changes API) using a view with parameter \`key="DOCID"\`.
> 
> As views return a collection of results (aka rows), we will index in ES each row with an id like DOCID\_seq where seq is the sequence number of each row.
> If you get back 3 rows for one single change for document with ID=1234, the river will index 3 documents :
> \- 1234\_1
> \- 1234\_2
> \- 1234\_3
> 
> To use it, you have to define a view in couchDB. For instance, \`\_design/vues/\_view/test\_dpi\` with 
> 
> \`\`\` javascript
> function(doc) {
> listArt=doc.document.articles;
> 
> for(var i=0; i\<listArt.length;i++) {  
> var artJson = {};
> artJson = { 'docid' : doc.\_id, 'num' : listArt\[i\].numeroArticle };
> artJson = JSON.stringify( artJson );
> emit(doc.\_id, eval('('+artJson+')') );
> };
> }
> \`\`\`
> 
> You can use it in your couchDb river as follow :
> 
> \`\`\` javascript
> {
> "type":"couchdb",
> "couchdb": {
> "host":"localhost",
> "port":"5984",
> "db":"dau\_test",
> "view":"vues/\_view/test\_dpi",
> "viewIgnoreRemove":false
> }
> }
> \`\`\`
> 
> New options :
> \- \`view\` : if not null, couchDB river will not fetch content from \`\_changes\` API but only IDs and then will use the view to retrieve rows using the ID as a key. By default : null
> \- \`viewIgnoreRemove\` : ask the river to ignore removal of rows if there is less rows after a document update. By default : false so non existing rows will be removed from elastic search.
> 
> For example, with the 3 rows described earlier, if you push a new version of the document 1234 in couchDB with only 2 docs, 
> 
> If \`viewIgnoreRemove\` is false (default), then
> \- 1234\_1 will be updated
> \- 1234\_2 will be updated
> \- 1234\_3 will be removed
> 
> If \`viewIgnoreRemove\` is true, then
> \- 1234\_1 will be updated
> \- 1234\_2 will be updated
> \- 1234\_3 will not be updated
> 
> BTW, I will push an update to the pull request when the \`ids\_prefix\` filter will be available to make code more efficient. (See issue https://github.com/elasticsearch/elasticsearch/issues/1259).
> 
> Thanks
> David

_That awkward moment when you realize this thread was started by you in the  
first place._ 🙂

On Tue, Jul 16, 2013 at 1:53 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Yeah. I know what a view is in CouchDb but apart from my own fork, I'm not  
> aware of such an option in the river itself.
> 
> Do you build your own river or do you use my fork or something else???
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 16 juil. 2013 à 09:38, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> 
> Yup, removing http:// helped.
> 
> view is couchdb mapreduce function (I think we call it that), which will  
> give us search results in required format. It looks something like this -
> 
> ```
> "map": "function (doc) { emit(doc._id, doc.metadata);}"
> 
> ```
> 
> Thanks David!
> 
> On Tue, Jul 16, 2013 at 12:40 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Try without http:// in host field.
> > 
> > BTW, what is the "view" option?  
> > IIRC it's not merged in master.
> > 
> > Did you build yourself the plugin?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 16 juil. 2013 à 07:49, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> > 
> > I did -
> > 
> > curl -XPUT '  
> > [http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/\_river/my\_river/\_meta](http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta)'  
> > -d '{  
> > "type" : "couchdb",  
> > "couchdb" : {  
> > "host" : "[http://gnd.iriscouch.com](http://gnd.iriscouch.com)",  
> > "port" : 5984,  
> > "db" : "tracks",  
> > "filter" : null,  
> > "ignore\_attachments" : true,  
> > "view" : "tracks/\_view/metadata"  
> > },  
> > "index" : {  
> > "index" : "data",  
> > "type" : "dataset",  
> > "bulk\_size" : "100",  
> > "bulk\_timeout" : "10ms"  
> > }  
> > }'
> > 
> > On Tue, Jul 16, 2013 at 9:18 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > You probably did not define properly host/port:
> > > 
> > > curl -XPUT 'localhost:9200/\_river/my\_db/\_meta' -d '{  
> > > "type" : "couchdb",  
> > > "couchdb" : {  
> > > "host" : "localhost",  
> > > "port" : 5984,  
> > > "db" : "my\_db",  
> > > "filter" : null  
> > > },  
> > > "index" : {  
> > > "index" : "my\_db",  
> > > "type" : "my\_db",  
> > > "bulk\_size" : "100",  
> > > "bulk\_timeout" : "10ms"  
> > > }  
> > > }'
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 16 juil. 2013 à 04:44, Akash Gupta [akash.bits@gmail.com](mailto:akash.bits@gmail.com) a écrit :
> > > 
> > > Guys, I am getting this in my startup logs -
> > > 
> > > [couchdb][my\_river] failed to read from \_changes, throttling....  
> > > java.lang.IllegalArgumentException: URI can't be null. at  
> > > sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at  
> > > sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925)  
> > > at  
> > > sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)  
> > > at  
> > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)  
> > > at  
> > > org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468)  
> > > at java.lang.Thread.run(Thread.java:722)
> > > 
> > > Any idea which URI is this error talking about?
> > > 
> > > --  
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/6D-yrasNuuw/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:26am UTC](https://discuss.elastic.co/t/elasticsearch-couchdb-river-startup-issues/12799/8 "2017-07-06T02:26:16Z")

</div>


