question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

illegal_argument_exception: [routing] is missing for join field [joinField]

See original GitHub issue
  • ElasticDump version: 3.3.19
  • Elasticsearch version: 6.3.0
  • Node.js version (note that nodejs v8+ is required for this tool): v9.11.2
  • Full command you are having issue with (with inputs and outputs)

Exporting to file (works):

#!/usr/bin/env bash
elasticdump \
  --input=http://10.0.0.1:9200/index \
  --output=/data/index-mapping.json \
  --type=mapping

elasticdump \
  --input=http://10.0.0.1:9200/index \
  --output=/data/index-analyzer.json \
  --type=analyzer

elasticdump \
  --input=http://10.0.0.1:9200/index \
  --output=/data/index-data.json \
  --type=data

importing from file on another server (doesn’t work)

#!/usr/bin/env bash
elasticdump \
  --input=index-analyzer.json \
  --output=http://127.0.0.1:9200/index \
  --type=analyzer

elasticdump \
  --input=index-mapping.json \
  --output=http://127.0.0.1:9200/index \
  --type=mapping

elasticdump \
  --input=index-data.json \
  --output=http://127.0.0.1:9200/index \
  --type=data

It fails with:

{ _index: 'index',
  _type: 'doc',
  _id: 'article-112437',
  status: 400,
  error:
   { type: 'mapper_parsing_exception',
     reason: 'failed to parse',
     caused_by:
      { type: 'illegal_argument_exception',
        reason: '[routing] is missing for join field [joinField]' } } }

Currently working on a simple data set to reproduce.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19

github_iconTop GitHub Comments

1reaction
tholucommented, Jan 18, 2019

@ferronrsmith Can you verify the analysis of @todvora and reopen the issue? Thanks!

1reaction
tholucommented, Dec 13, 2018

I can confirm the issue for the following versions:

~# elasticdump --version
4.1.1
~# curl localhost:9200
{
  "name" : "S74eeM1",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "WlNA_Dn-Roy8dKNwW0GXlg",
  "version" : {
    "number" : "6.4.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "04711c2",
    "build_date" : "2018-09-26T13:34:09.098244Z",
    "build_snapshot" : false,
    "lucene_version" : "7.4.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

The dataset that causes this is around 30GB, so still working on providing a simple dataset to reproduce.

Read more comments on GitHub >

github_iconTop Results From Across the Web

illegal_argument_exception: [routing] is missing for join field ...
Currently working on a simple data set to reproduce. The text was updated successfully, but these errors were encountered: ...
Read more >
[routing] is missing for join field [relation] - Elasticsearch
Process: I receive data from spark as Dataset. Then it is mapped to MyObject (according to the ES mapping) using map() function.
Read more >
[routing] is missing for join field [joinField] - Bountysource
illegal_argument_exception : [routing] is missing for join field [joinField] · ElasticDump version: 3.3.19 · Elasticsearch version: 6.3.0 · Node.js ...
Read more >
Easticsearch reindexing multi-type parent/child index(v5.0) to ...
I'd like to point out that routing is generally not required for a join field, however if you're creating the child before the...
Read more >
Spring Data Elasticsearch - Reference Documentation
When using join-types (see Join-Type implementation), Spring Data Elasticsearch will automatically use the parent property of the entity's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found