# How can I install esrally to different directory?

**URL:** <https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [September 14, 2018, 4:34pm UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653 "2018-09-14T16:34:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micah\_Hunsberger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/micah_hunsberger/32/147436_2.png) [@Micah\_Hunsberger](https://discuss.elastic.co/u/Micah_Hunsberger)\
**Post date:** [September 14, 2018, 4:34pm UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/1 "2018-09-14T16:34:47Z")

</div>

right now, esrally is installed to the home directory, which seems to be the default. But the home directory on my machine is on the boot drive, and I would like to have esrally install and run elasticsearch in a different location for testing purposes because the other location is mapped to a larger and faster drive.

Can I move esrally to a different location? Or is there a way to reinstall it to a different directory? Thanks

---

<div class="post-metadata">

**Author:** ![Micah\_Hunsberger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/micah_hunsberger/32/147436_2.png) [@Micah\_Hunsberger](https://discuss.elastic.co/u/Micah_Hunsberger)\
**Post date:** [September 14, 2018, 5:31pm UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/2 "2018-09-14T17:31:37Z")

</div>

is it enough to run  
`esrally configure --advanced-config` and set the benchmark data directory to `/my/other/location/.rally` ? Or is that only for storing the data before indexing?  
Do I also have to list `--car-params="data_paths:'/my/other/location/elasticsearch'` ? when running the race?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [September 17, 2018, 8:46am UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/3 "2018-09-17T08:46:54Z")

</div>

Hi,

yes, the approach you describe is sufficient. Unfortunately, Rally's message `"Enter the benchmark data directory"` is a bit misleading. This actually affects (almost) everything that Rally is storing including any cached downloads of Elasticsearch, the Elasticsearch source checkout (if relevant) and so on. You do not need to specify anything special in your benchmarks.

The only file that is not covered by this configuration and that can get a bit large is Rally's log file in `~/.rally/logs/rally.logs`. You can customize the path in `~/.rally/logging.json` if needed.

Daniel

---

<div class="post-metadata">

**Author:** ![Micah\_Hunsberger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/micah_hunsberger/32/147436_2.png) [@Micah\_Hunsberger](https://discuss.elastic.co/u/Micah_Hunsberger)\
**Post date:** [September 17, 2018, 3:36pm UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/4 "2018-09-17T15:36:07Z")

</div>

Thanks!  
I noticed after I posted that rally started the elasticsearch node in the `benchmarks/races/{datetime}/` directory, so setting the `"benchmark data directory"` would also set the elasticsearch directory.  
As an additional note for anyone following the thread: The user running rally has to have read, write, and execute permissions on the benchmark data directory, since you can't run esrally with `sudo`.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [September 18, 2018, 5:33am UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/5 "2018-09-18T05:33:51Z")

</div>

Hi,

yes, that's what I meant when I said that Rally referring to that directory only as "benchmark data directory" is confusing. It is storing everything in there and we will reword the message.

Any reason why you wanted to run Rally with sudo privileges?

Daniel

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [September 18, 2018, 5:55am UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/6 "2018-09-18T05:55:49Z")

</div>

Hi,

I have now created [https://github.com/elastic/rally/pull/574](https://github.com/elastic/rally/pull/574) to change the wording. The change will be released with Rally 1.0.2.

Daniel

---

<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:** [October 16, 2018, 6:10am UTC](https://discuss.elastic.co/t/how-can-i-install-esrally-to-different-directory/148653/7 "2018-10-16T06:10:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
