Elasticsearch couchdb-river startup issues

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.
For more options, visit https://groups.google.com/groups/opt_out.

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

I did -

curl -XPUT '
http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta'
-d '{
"type" : "couchdb",
"couchdb" : {
"host" : "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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta 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.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

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

I did -

curl -XPUT 'http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta 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.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

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

I did -

curl -XPUT '
http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta'
-d '{
"type" : "couchdb",
"couchdb" : {
"host" : "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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta 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.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 09:38, Akash Gupta 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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

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

I did -

curl -XPUT 'http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta 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.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

That awkward moment when you realize this thread was started by you in the
first place.
:slight_smile:

On Tue, Jul 16, 2013 at 1:53 PM, David Pilato 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 09:38, Akash Gupta 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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

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

I did -

curl -XPUT '
http://d7b2aae806c0306dcbc4d9fa615ec48a-us-east-1.foundcluster.com:9200/_river/my_river/_meta'
-d '{
"type" : "couchdb",
"couchdb" : {
"host" : "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 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 juil. 2013 à 04:44, Akash Gupta 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.

For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.