Skip to content

Hive "es.mapping.routing" Error #1180

@myamor163

Description

@myamor163

elasticsearch-hadoop 6.0.0
Hive External Table Seting One:
'es.mapping.join'='my_join_field' #my_join_field type map<string,string>
es.mapping.routing not set

 Prompt mistakes when writing table 
     "Field [my_join_field] needs to be a primitive; found [map<string,string>]"

Hive External Table Seting Two:

 'es.mapping.join'='my_join_field'   #my_join_field type map<string,string>
 'es.mapping.routing'='<4>'   #Specify the constant Or field

  Prompt OK when writing table。

And this is not in conformity with the
"- Added a chained field extractor that checks for routing first, and if
a routing has not been set, will search for the join field's parent id. "

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions