Can't run race, Cannot find /root/.rally/benchmarks/data/geonames/documents-2.json.bz2

I can't run race, It says

 Cannot race. Error in track preparator (('Cannot find /root/.rally/benchmarks/data/geonames/documents-2.json.bz2.

I'm sure my data file is exist.

my operation and shell output is below

[root@dev8 default]# esrally --pipeline=benchmark-only --target-hosts=192.168.41.103:9200,192.168.41.104:9200,192.168.41.105:9200 --offline

    ____        ____
   / __ \____ _/ / /_  __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\__,_/_/_/\__, /
                /____/


[ERROR] Cannot race. Error in track preparator (('Cannot find /root/.rally/benchmarks/data/geonames/documents-2.json.bz2. Please disable offline mode and retry again.', None))

Getting further help:
*********************
* Check the log files in /root/.rally/logs for errors.
* Read the documentation at https://esrally.readthedocs.io/en/2.0.0/
* Ask a question on the forum at https://discuss.elastic.co/c/elasticsearch/rally
* Raise an issue at https://github.com/elastic/rally/issues and include the log files in /root/.rally/logs.

-------------------------------
[INFO] FAILURE (took 4 seconds)
-------------------------------

I check my data file

[root@dev8 default]# ls -alh /root/.rally/benchmarks/data/geonames/documents-2.json.bz2
-rw-r--r--. 1 root root 253M Jun 11 18:08 /root/.rally/benchmarks/data/geonames/documents-2.json.bz2

my rally version is 2.0.0

[root@dev8 default]# esrally --version
esrally 2.0.0

could you help to resolve it please? thank you so much

if need more info please tell me, thank you again.

Hi,

Rally checks whether the data file is available locally and also compares the file size with the expected one as specified by the track. Your file size (253MB) looks basically right but can you run ls -al /root/.rally/benchmarks/data/geonames/documents-2.json.bz2 (without the -h flag) and check whether it is exactly 265208777 (byte)? If that's not the case, Rally considers the local copy corrupt and attempt to redownload the file and that's what you might be seeing here. If the file size does not match, can you please retry downloading the file?

Daniel

[root@dev8 default]# ls -al /root/.rally/benchmarks/data/geonames/documents-2.json.bz2 
-rw-r--r--. 1 root root 264698741 Jun 11 18:08 /root/.rally/benchmarks/data/geonames/documents-2.json.bz2

Oh, It seems my data file is corrupt, thanks!
I think it can give a more friendly tips, thanks!

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