# \[URGENT\] Corpora Definiton , no base-url defined || Indexing Local dump.json

**URL:** <https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515>\
**Category:** Elasticsearch\
**Tags:** docker, rally\
**Created:** [February 2, 2023, 8:51am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515 "2023-02-02T08:51:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sriram\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriram_kumar/32/116653_2.png) [@Sriram\_Kumar](https://discuss.elastic.co/u/Sriram_Kumar)\
**Post date:** [February 2, 2023, 8:51am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/1 "2023-02-02T08:51:40Z")

</div>

Hi I am very new to esRally , I tried finding the similar topic but couldn't . Any help would be really appreciated.

So , I have hosted a local es on docker. version : 8.5.2 , single node .

I want to do benchmarking using my products.json , so bulk indexing and challenges like parallel bulk indexing to measure throughput.

here is track.sjon

```auto
    "version": 2,
    "description": "Tutorial benchmark for Rally",
    "indices": [
      {
        "name": "customlogs",
        "body": ""
      },
      {
        "name": "customgeo",
        "body": ""
      }
    ],
    "corpora": [
      {
        "name": "rally-tutorial",
        "documents": [
          {
            "source-file": "./geodocs.json",
            "document-count": 100000,
            "target-index": "customgeo"
          },
          {
            "source-file": "./geodocs.json",
            "document-count": 100000,
            "target-index": "customlogs"
          }
        ]
      }
    ],
    "schedule": [
      {
        "operation": {
          "operation-type": "create-index"
        }
      },
      {
        "operation": {
          "operation-type": "cluster-health",
          "request-params": {
            "wait_for_status": "yellow"
          }
        }
      },
      {
        "parallel": {
          "tasks": [
            {
              "name": "bulk1",
              "operation": {
                "operation-type": "bulk",
                "indices": "customgeo",
                "bulk-size": 100
              },
              "warmup-time-period": 0,
              "clients": 1,
              "target-throughput": 800
            },
            {
              "name": "bulk2",
              "operation": {
                "operation-type": "bulk",
                "indices": "customlogs",
                "bulk-size": 100
              },
              "warmup-time-period": 0,
              "clients": 1,
              "target-throughput": 800
            }
          ]
        }
      }
    ]
  }

```

here is the command i am running

//

`esrally race --track=/Users/jarvis/GOSTOR/backend/clean_up/PRODUCT-STORE/GO_LIVE/rally-tracks/local-track --test-mode --target-hosts="127.0.0.1:9200" --kill-running-processes --pipeline=benchmark-only --report-file=~/Desktop/report.csv --report-format=csv`

 ![Screenshot 2023-02-02 at 2.20.43 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3b13cf0cdab30bd9c4f9cd3084a24a38c9921130.jpeg)

 ![Screenshot 2023-02-02 at 2.19.28 PM](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0ea4d11a66b1ddcf8339198bf825ef241fe265d7.png)

---

<div class="post-metadata">

**Author:** ![Quentin\_Pradet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quentin_pradet/32/94192_2.png) [@Quentin\_Pradet](https://discuss.elastic.co/u/Quentin_Pradet)\
**Post date:** [February 2, 2023, 10:02am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/2 "2023-02-02T10:02:44Z")

</div>

Hello, and thank you for your interest in Rally!

You need to use `--track-path` instead of `--track` are you're passing a path and not a track name like geonames.

---

<div class="post-metadata">

**Author:** ![Sriram\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriram_kumar/32/116653_2.png) [@Sriram\_Kumar](https://discuss.elastic.co/u/Sriram_Kumar)\
**Post date:** [February 2, 2023, 10:08am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/3 "2023-02-02T10:08:04Z")

</div>

> [@Quentin\_Pradet](#):
>
> `--track-path`

Thanks for the Reply .

Tried Both

````auto
esrally race --track-path=/Users/jarvis/GOSTOR/backend/clean_up/PRODUCT-STORE/GO_LIVE/rally-tracks/local-track/track.json --test-mode --target-hosts="127.0.0.1:9200" --kill-running-processes --pipeline=benchmark-only --report-file=~/Desktop/report.csv --report-format=csv ```

````

esrally race --track-path=/Users/jarvis/GOSTOR/backend/clean\_up/PRODUCT-STORE/GO\_LIVE/rally-tracks/local-track --test-mode --target-hosts="127.0.0.1:9200" --kill-running-processes --pipeline=benchmark-only --report-file=~/Desktop/report.csv --report-format=csv ```

Why is it exepecting base-url , when i have defined corpora like this

```auto
      {
        "name": "rally-tutorial",
        "documents": [
          {
            "source-file": "./geodocs.json",
            "document-count": 100000,
            "target-index": "customgeo"
          },
          {
            "source-file": "./geodocs.json",
            "document-count": 100000,
            "target-index": "customlogs"
          }
        ]
      }
    ]

```

Still getting the same error :

 ![Screenshot 2023-02-02 at 3.36.55 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/9/59c6e878dff50085909838e0087c795523e6f169.jpeg)

---

<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:** [February 2, 2023, 1:38pm UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/4 "2023-02-02T13:38:13Z")

</div>

> [@Sriram\_Kumar](#):
>
> ````auto
> esrally race --track-path=/Users/jarvis/GOSTOR/backend/clean_up/PRODUCT-STORE/GO_LIVE/rally-tracks/local-track/track.json --test-mode --target-hosts="127.0.0.1:9200" --kill-running-processes --pipeline=benchmark-only --report-file=~/Desktop/report.csv --report-format=csv ```
> 
> ````

The issue is because you are using the `test-mode`. Please see [Define Custom Workloads: Tracks - Rally 2.10.0 documentation](https://esrally.readthedocs.io/en/stable/adding_tracks.html?highlight=creating%20corpora#adding-support-for-test-mode) you additionally need to create a `-1k.json` version of your corpus file.

We could improve our error here.

---

<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:** [February 2, 2023, 2:05pm UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/5 "2023-02-02T14:05:55Z")

</div>

> [@dliappis](#):
>
> We could improve our error here.

already tracked in [test-mode support for source files with fewer than 1k documents · Issue #1354 · elastic/rally · GitHub](https://github.com/elastic/rally/issues/1354)

---

<div class="post-metadata">

**Author:** ![Sriram\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sriram_kumar/32/116653_2.png) [@Sriram\_Kumar](https://discuss.elastic.co/u/Sriram_Kumar)\
**Post date:** [February 3, 2023, 6:31am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/6 "2023-02-03T06:31:57Z")

</div>

Thanks @dliappis & @Quentin_Pradet .

I followed How to write own track from scratch. That helped.

There is no good post / videos which explains esrally. I have started my journey will definitely make one which would atleast help the beginners to get the hands on.

Once again . Great work everyone . Would love to keep contributing one way or another.

---

<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:** [February 6, 2023, 9:32am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/7 "2023-02-06T09:32:29Z")

</div>

> [@Sriram\_Kumar](#):
>
> There is no good post / videos which explains esrally. I have started my journey will definitely make one which would atleast help the beginners to get the hands on.
> 
> Once again . Great work everyone . Would love to keep contributing one way or another.

Glad you got the issue sorted and thank you for the feedback @Sriram_Kumar . I agree that more entry-level enablement material is needed; the [documentation](https://esrally.readthedocs.io/en/stable/) is exhaustive but is more reference like and we seem to be missing onboarding material, in the form of blog articles or videos.

We welcome all contributions including areas related to documentation and improving the end user experience.

---

<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:** [March 6, 2023, 9:33am UTC](https://discuss.elastic.co/t/urgent-corpora-definiton-no-base-url-defined-indexing-local-dump-json/324515/8 "2023-03-06T09:33:29Z")

</div>

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