# Increase track data with for range statement,but meet java.lang.ClassCastException

**URL:** <https://discuss.elastic.co/t/increase-track-data-with-for-range-statement-but-meet-java-lang-classcastexception/173885>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [March 26, 2019, 8:35am UTC](https://discuss.elastic.co/t/increase-track-data-with-for-range-statement-but-meet-java-lang-classcastexception/173885 "2019-03-26T08:35:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [March 26, 2019, 1:08pm UTC](https://discuss.elastic.co/t/increase-track-data-with-for-range-statement-but-meet-java-lang-classcastexception/173885/2 "2019-03-26T13:08:02Z")

</div>

Hello,

The jinja2 loop you've defined will try to download source files like `documents-2.json-0.bz2`, `documents-2.json-1.bz2` etc.

Since you are using the same `base-url` as the [upstream geonames](https://github.com/elastic/rally-tracks/blob/6366ea47217cb48dd2021abdbac1a22bf4b3c285/geonames/track.json#L15), you end up referencing files that don't exist, which you can easily check yourself with:

```auto
curl http://benchmarks.elasticsearch.org.s3.amazonaws.com/corpora/geonames/documents-2.json-0.bz2
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>corpora/geonames/documents-2.json-0.bz2</Key><RequestId>037E3BB5A46782DE</RequestId><HostId>7oagYu1Ol6QaaxOINX+0VFpGzQ0o9enTiz/uDRIHsEDwTaNVQH3tqV+MWkuvi8/gvSHT4Bo6MXc=</HostId></Error>

```

I am surprised you didn't get a 404 while running this, as such files don't exist.

If you want to use a larger corpus by repeating geonames 10 times, you can simply download locally and concatenate it in a larger file and either provide the full path to this in `source-file` or upload it to some location you control and change `base-url` accordingly. Details in [https://esrally.readthedocs.io/en/latest/track.html#corpora](https://esrally.readthedocs.io/en/latest/track.html#corpora).

Rgs,  
Dimitris

---

_[View the full topic](https://discuss.elastic.co/t/increase-track-data-with-for-range-statement-but-meet-java-lang-classcastexception/173885)._
