# Install elasticsearch-river-csv

**URL:** <https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021>\
**Category:** Elasticsearch\
**Created:** [July 31, 2013, 7:05pm UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021 "2013-07-31T19:05:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faillissements\_Dossi](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Faillissements\_Dossi](https://discuss.elastic.co/u/Faillissements_Dossi)\
**Post date:** [July 31, 2013, 7:05pm UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/1 "2013-07-31T19:05:37Z")

</div>

Hi,

I try to use river csv on elasticsearch.  
As I saw in older posts the command bin/plugin -install  
xxBedy/elasticsearch-river-csv/1.0.1 does not work.

The advice on Github is: If it doesn't work, clone git repository and build  
plugin manually.

I downloaded both elasticsearch-river-csv-1.0.0.zip  
and elasticsearch-river-csv-1.0.0.tar.gz

I'm a newbie to Linux and ES.  
Could somebody please explain in detail how to clone the repo and build the  
plugin.

Thanks, Marcel

--  
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 31, 2013, 7:34pm UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/2 "2013-07-31T19:34:23Z")

</div>

You need maven and a JDK.  
Once everything setup in your project dir, run mvn install

That said, I build it and shared it here: [http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip](http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip)

Unzip it /plugins/csv-river/ directory.

Then launch elasticsearch and check in logs that csv river is loaded.

HTH

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 31 juil. 2013 à 21:05, Faillissements Dossier [ronald@binqmedia.nl](mailto:ronald@binqmedia.nl) a écrit :

> Hi,
> 
> I try to use river csv on elasticsearch.  
> As I saw in older posts the command bin/plugin -install xxBedy/elasticsearch-river-csv/1.0.1 does not work.
> 
> The advice on Github is: If it doesn't work, clone git repository and build plugin manually.
> 
> I downloaded both elasticsearch-river-csv-1.0.0.zip and elasticsearch-river-csv-1.0.0.tar.gz
> 
> I'm a newbie to Linux and ES.  
> Could somebody please explain in detail how to clone the repo and build the plugin.
> 
> Thanks, Marcel
> 
> --  
> 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:** ![Faillissements\_Dossi](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Faillissements\_Dossi](https://discuss.elastic.co/u/Faillissements_Dossi)\
**Post date:** [July 31, 2013, 8:22pm UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/3 "2013-07-31T20:22:23Z")

</div>

David,

Thanks very much. It helps. csv-river is loaded and running.

I now got an error: [csv][my\_csv\_river] can't rename file, but that should  
be fixed by changing write access to the file.

How can I force csv-river to run instead of waiting on the poll interval.  
And how can I temporally stop the river?

Thanks

Op woensdag 31 juli 2013 21:34:23 UTC+2 schreef David Pilato:

> You need maven and a JDK.  
> Once everything setup in your project dir, run mvn install
> 
> That said, I build it and shared it here:  
> [http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip](http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip)
> 
> Unzip it /plugins/csv-river/ directory.
> 
> Then launch elasticsearch and check in logs that csv river is loaded.
> 
> HTH
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 31 juil. 2013 à 21:05, Faillissements Dossier \<ron...@binqmedia.nl\<javascript:\>\>  
> a écrit :
> 
> Hi,
> 
> I try to use river csv on elasticsearch.  
> As I saw in older posts the command bin/plugin -install  
> xxBedy/elasticsearch-river-csv/1.0.1 does not work.
> 
> The advice on Github is: If it doesn't work, clone git repository and  
> build plugin manually.
> 
> I downloaded both elasticsearch-river-csv-1.0.0.zip  
> and elasticsearch-river-csv-1.0.0.tar.gz
> 
> I'm a newbie to Linux and ES.  
> Could somebody please explain in detail how to clone the repo and build  
> the plugin.
> 
> Thanks, Marcel
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> 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 31, 2013, 8:24pm UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/4 "2013-07-31T20:24:08Z")

</div>

I think you need to remove the river using curl -XDELETE [http://localhost:9200/\_river/yourrivername](http://localhost:9200/_river/yourrivername)  
Then create it again

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 31 juil. 2013 à 22:22, Faillissements Dossier [ronald@binqmedia.nl](mailto:ronald@binqmedia.nl) a écrit :

> David,
> 
> Thanks very much. It helps. csv-river is loaded and running.
> 
> I now got an error: [csv][my\_csv\_river] can't rename file, but that should be fixed by changing write access to the file.
> 
> How can I force csv-river to run instead of waiting on the poll interval. And how can I temporally stop the river?
> 
> Thanks
> 
> Op woensdag 31 juli 2013 21:34:23 UTC+2 schreef David Pilato:  
> You need maven and a JDK.  
> Once everything setup in your project dir, run mvn install
> 
> That said, I build it and shared it here: [http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip](http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip)
> 
> Unzip it /plugins/csv-river/ directory.
> 
> Then launch elasticsearch and check in logs that csv river is loaded.
> 
> HTH
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 31 juil. 2013 à 21:05, Faillissements Dossier [ron...@binqmedia.nl](mailto:ron...@binqmedia.nl) a écrit :
> 
> > Hi,
> > 
> > I try to use river csv on elasticsearch.  
> > As I saw in older posts the command bin/plugin -install xxBedy/elasticsearch-river-csv/1.0.1 does not work.
> > 
> > The advice on Github is: If it doesn't work, clone git repository and build plugin manually.
> > 
> > I downloaded both elasticsearch-river-csv-1.0.0.zip and elasticsearch-river-csv-1.0.0.tar.gz
> > 
> > I'm a newbie to Linux and ES.  
> > Could somebody please explain in detail how to clone the repo and build the plugin.
> > 
> > Thanks, Marcel
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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:** ![Faillissements\_Dossi](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Faillissements\_Dossi](https://discuss.elastic.co/u/Faillissements_Dossi)\
**Post date:** [July 31, 2013, 9:09pm UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/5 "2013-07-31T21:09:24Z")

</div>

That works.

The csv is imported in the index, still got an error in the log

[2013-07-31 23:04:11,932][ERROR][river.csv] 7  
java.lang.ArrayIndexOutOfBoundsException: 7  
at  
org.elasticsearch.river.csv.CSVRiver$CSVConnector.processFile(CSVRiver.java:241)  
at  
org.elasticsearch.river.csv.CSVRiver$CSVConnector.run(CSVRiver.java:193)  
at java.lang.Thread.run(Thread.java:679)

any ideas?

Op woensdag 31 juli 2013 22:24:08 UTC+2 schreef David Pilato:

> I think you need to remove the river using curl -XDELETE  
> [http://localhost:9200/\_river/yourrivername](http://localhost:9200/_river/yourrivername)  
> Then create it again
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 31 juil. 2013 à 22:22, Faillissements Dossier \<ron...@binqmedia.nl\<javascript:\>\>  
> a écrit :
> 
> David,
> 
> Thanks very much. It helps. csv-river is loaded and running.
> 
> I now got an error: [csv][my\_csv\_river] can't rename file, but that should  
> be fixed by changing write access to the file.
> 
> How can I force csv-river to run instead of waiting on the poll interval.  
> And how can I temporally stop the river?
> 
> Thanks
> 
> Op woensdag 31 juli 2013 21:34:23 UTC+2 schreef David Pilato:
> 
> > You need maven and a JDK.  
> > Once everything setup in your project dir, run mvn install
> > 
> > That said, I build it and shared it here:  
> > [http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip](http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip)
> > 
> > Unzip it /plugins/csv-river/ directory.
> > 
> > Then launch elasticsearch and check in logs that csv river is loaded.
> > 
> > HTH
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 31 juil. 2013 à 21:05, Faillissements Dossier [ron...@binqmedia.nl](mailto:ron...@binqmedia.nl) a  
> > écrit :
> > 
> > Hi,
> > 
> > I try to use river csv on elasticsearch.  
> > As I saw in older posts the command bin/plugin -install  
> > xxBedy/elasticsearch-river-csv/1.0.1 does not work.
> > 
> > The advice on Github is: If it doesn't work, clone git repository and  
> > build plugin manually.
> > 
> > I downloaded both elasticsearch-river-csv-1.0.0.zip  
> > and elasticsearch-river-csv-1.0.0.tar.gz
> > 
> > I'm a newbie to Linux and ES.  
> > Could somebody please explain in detail how to clone the repo and build  
> > the plugin.
> > 
> > Thanks, Marcel
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> 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:** [August 1, 2013, 5:52am UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/6 "2013-08-01T05:52:13Z")

</div>

No. :-/  
I did not build this river myself.  
You could open an issue in csv river Project. Or have a look at the souce code line 241. It could give you a clue.

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

Le 31 juil. 2013 à 23:09, Faillissements Dossier [ronald@binqmedia.nl](mailto:ronald@binqmedia.nl) a écrit :

That works.

The csv is imported in the index, still got an error in the log

[2013-07-31 23:04:11,932][ERROR][river.csv] 7  
java.lang.ArrayIndexOutOfBoundsException: 7  
at org.elasticsearch.river.csv.CSVRiver$CSVConnector.processFile(CSVRiver.java:241)  
at org.elasticsearch.river.csv.CSVRiver$CSVConnector.run(CSVRiver.java:193)  
at java.lang.Thread.run(Thread.java:679)

any ideas?

Op woensdag 31 juli 2013 22:24:08 UTC+2 schreef David Pilato:

> I think you need to remove the river using curl -XDELETE [http://localhost:9200/\_river/yourrivername](http://localhost:9200/_river/yourrivername)  
> Then create it again
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 31 juil. 2013 à 22:22, Faillissements Dossier [ron...@binqmedia.nl](mailto:ron...@binqmedia.nl) a écrit :
> 
> > David,
> > 
> > Thanks very much. It helps. csv-river is loaded and running.
> > 
> > I now got an error: [csv][my\_csv\_river] can't rename file, but that should be fixed by changing write access to the file.
> > 
> > How can I force csv-river to run instead of waiting on the poll interval. And how can I temporally stop the river?
> > 
> > Thanks
> > 
> > Op woensdag 31 juli 2013 21:34:23 UTC+2 schreef David Pilato:
> > 
> > > You need maven and a JDK.  
> > > Once everything setup in your project dir, run mvn install
> > > 
> > > That said, I build it and shared it here: [http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip](http://dl.bintray.com/dadoonet/public/elasticsearch-river-csv-1.0.1.zip)
> > > 
> > > Unzip it /plugins/csv-river/ directory.
> > > 
> > > Then launch elasticsearch and check in logs that csv river is loaded.
> > > 
> > > HTH
> > > 
> > > --  
> > > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > > @dadoonet | @elasticsearchfr | @scrutmydocs
> > > 
> > > Le 31 juil. 2013 à 21:05, Faillissements Dossier [ron...@binqmedia.nl](mailto:ron...@binqmedia.nl) a écrit :
> > > 
> > > > Hi,
> > > > 
> > > > I try to use river csv on elasticsearch.  
> > > > As I saw in older posts the command bin/plugin -install xxBedy/elasticsearch-river-csv/1.0.1 does not work.
> > > > 
> > > > The advice on Github is: If it doesn't work, clone git repository and build plugin manually.
> > > > 
> > > > I downloaded both elasticsearch-river-csv-1.0.0.zip and elasticsearch-river-csv-1.0.0.tar.gz
> > > > 
> > > > I'm a newbie to Linux and ES.  
> > > > Could somebody please explain in detail how to clone the repo and build the plugin.
> > > > 
> > > > Thanks, Marcel
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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:** ![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:23am UTC](https://discuss.elastic.co/t/install-elasticsearch-river-csv/13021/7 "2017-07-06T02:23:24Z")

</div>


