# Failed on parsing mappings on index creation \[nyc\_taxis\]

**URL:** <https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539>\
**Category:** Elasticsearch\
**Tags:** docker, rally\
**Created:** [November 9, 2022, 12:35pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539 "2022-11-09T12:35:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [November 9, 2022, 12:35pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/1 "2022-11-09T12:35:13Z")

</div>

Previously raised issue but the issue is still not fixed.

> [@Failed on parsing mappings on index creation \[nyc\_taxis\]](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/313977):
>
> Hi All, I got below error while running benchmarking with nyc\_taxis track. failed on parsing mappings on index creation [nyc\_taxis]", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es-master][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.metadata.MetadataCreateIndexService","elasticsearch.cluster.uuid":"aTZW8zstTpGjcWl9aHTGhw","elasticsearch.node.id":"qfLV4yDySnyl9t9D0vKGlw","elasticsearch.nod…

ES Version 8.2.0  
ESRally Version: 2.7.0

Running on kubernetes. Using official docker image.

Getting below error,

message":"failed on parsing mappings on index creation [nyc\_taxis]", "ecs.version": "1.2.0","service.name":"ES\_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es-master][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.metadata.MetadataCreateIndexService","elasticsearch.cluster.uuid":"-nByYRa5TOOflVUTHaZ1lg","elasticsearch.node.id":"18ZwZRWBSIapSeYkIJ9lSw","elasticsearch.node.name":"es-master","elasticsearch.cluster.name":"elasticsearch","error.type":"org.elasticsearch.index.mapper.MapperParsingException","error.message":"Failed to parse mapping: unknown parameter [mode] on mapper [\_source] of type [null]","error.stack\_trace":"org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping: unknown parameter [mode] on mapper [\_source] of type [null]\n\tat org.elasticsearch.index.mapper.MapperService.parseMapping(MapperService.java:372)\n\tat org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:347)\n\tat

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 9, 2022, 1:35pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/2 "2022-11-09T13:35:37Z")

</div>

Hi @amitsa , what is the command line invocation you are using for Rally? I double-checked, and this is fixed in the version of nyc\_taxis that is compatible with 8.2: [rally-tracks/index.json at 8 · elastic/rally-tracks · GitHub](https://github.com/elastic/rally-tracks/blob/8/nyc_taxis/index.json) (no `_source.mode` setting)

---

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [November 9, 2022, 1:37pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/3 "2022-11-09T13:37:38Z")

</div>

esrally race --offline --track-params='{"number\_of\_shards":'${ES\_NO\_OF\_SHARDS}',"number\_of\_replicas":'${ES\_NO\_OF\_REPLICAS}',"ingest\_percentage":'${ES\_INGEST\_PERCENTAGE}',"bulk\_size":'${ES\_BULKSIZE}',"bulk\_indexing\_clients":'${ES\_BULK\_INDEXING\_CLIENT}',"index\_settings": { "index.refresh\_interval":'${ES\_REFRESH\_INTERVAL}' }}' --track-path=/rally/.rally/benchmarks/tracks/default/${ES\_RALLY\_RACE} --pipeline=benchmark-only --target-hosts=${ELASTIC\_EP} ${ES\_TESTMODE} --challenge=${ES\_CHALLENGE} --client-options ${CLIENT\_OPTIONS} --report-format=csv

i am using below script to download track  
[https://raw.githubusercontent.com/elastic/rally-tracks/master/download.sh](https://raw.githubusercontent.com/elastic/rally-tracks/master/download.sh)

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 9, 2022, 1:39pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/4 "2022-11-09T13:39:46Z")

</div>

Ah ok,

As we mentioned in the original post, the problem is not in Rally but in the upstream rally-tracks repository that it depends on. When you use `--offline` it does not fetch track updates from remote track repositories.

---

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [November 9, 2022, 1:41pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/5 "2022-11-09T13:41:06Z")

</div>

How to make it work in offline mode? any workaround?

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 9, 2022, 1:42pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/6 "2022-11-09T13:42:28Z")

</div>

The branch `master` should not be used for compatibility reasons. See [Track Reference - Rally 2.7.0 documentation](https://esrally.readthedocs.io/en/stable/track.html?highlight=branch#custom-track-repositories)

For 8.2 please use download.sh while branch `8` is checked out in git

---

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [November 9, 2022, 1:45pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/7 "2022-11-09T13:45:17Z")

</div>

i was getting the same error with rally version 2.3.1 so moved to latest

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 9, 2022, 1:45pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/8 "2022-11-09T13:45:50Z")

</div>

As we mentioned in the original post, the problem is not in Rally but in the upstream rally-tracks repository that it depends on.

---

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [November 9, 2022, 1:55pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/9 "2022-11-09T13:55:08Z")

</div>

Does using es version 8.4 or greater than 8.4 can help?

i am not using any distribution version in cli. I am just downloading track data from master using download script.  
./download.sh nyc\_taxis

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 9, 2022, 2:00pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/10 "2022-11-09T14:00:47Z")

</div>

Apologies, it's not download.sh that is concerning, it's the version of the track. `--track-path=/rally/.rally/benchmarks/tracks/default/${ES_RALLY_RACE}` is pointing to a version of the track that doesn't work.

> The branch `master` should not be used for compatibility reasons. See [Track Reference - Rally 2.7.0 documentation](https://esrally.readthedocs.io/en/stable/track.html?highlight=branch#custom-track-repositories)

Therefore you should check out branch `8` at that location. Using version 8.4 will technically get you over this specific error but won't guarantee that you are using a version of the track that we have tested or asserts works with your stack version, because you are not using an intentional version of the benchmark code.

---

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [November 9, 2022, 2:04pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/11 "2022-11-09T14:04:33Z")

</div>

can i download track of specific branch with download script?

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [November 9, 2022, 3:05pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/12 "2022-11-09T15:05:40Z")

</div>

No, unfortunately. Therefore you should check out branch `8` at that location.

---

<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:** [December 7, 2022, 3:06pm UTC](https://discuss.elastic.co/t/failed-on-parsing-mappings-on-index-creation-nyc-taxis/318539/13 "2022-12-07T15:06:21Z")

</div>

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