nytlabs / hive

A platform for backing crowdsourcing websites, built in golang for elasticsearch
Apache License 2.0
362 stars 38 forks source link

Error when trying to import data, using the binary file. #10

Open blumonkey opened 8 years ago

blumonkey commented 8 years ago

Hello,

I managed to install elasticsearch and have it up and running at localhost:9200. But when I try to import data by following the readme:

$ curl -XPOST localhost:8080/admin/setup -d@samples/example.json

I get the following error.

{"error":"2016-05-09 16:59:12.436297591 +0530 IST: Error [map[root_cause:[map[type:illegal_argument_exception reason:Mapper for [Project] conflicts with existing mapping in other types:
[mapper [Project] has different [index] values, mapper [Project] has different [omit_norms] values, cannot change from disable to enabled, mapper [Project] has different [analyzer], mapper [Project] is used by multiple types. Set update_all_types to true to update [omit_norms] across all types., mapper [Project] is used by multiple types. Set update_all_types to true to update [search_analyzer] across all types., mapper [Project] is used by multiple types. Set update_all_types to true to update [search_quote_analyzer] across all types.]]] type:illegal_argument_exception reason:Mapper for [Project] conflicts with existing mapping in other types:
[mapper [Project] has different [index] values, mapper [Project] has different [omit_norms] values, cannot change from disable to enabled, mapper [Project] has different [analyzer], mapper [Project] is used by multiple types. Set update_all_types to true to update [omit_norms] across all types., mapper [Project] is used by multiple types. Set update_all_types to true to update [search_analyzer] across all types., mapper [Project] is used by multiple types. Set update_all_types to true to update [search_quote_analyzer] across all types.]]] Status [400] [400]"}

I specifically mention binary file as I haven't tried it using any other method (See Issue #9 ). Any help is appreciated. Thanks in advance!

chrisvaughn commented 8 years ago

I've found you can't use the latest versions of ElasticSearch with Hive. Hive hasn't been updated in a while and is using some deprecated features of ES. Last time I set it up I looked at dates of the last commit to the project and then found which ES release matched those dates and installed that version.

blumonkey commented 8 years ago

@chrisvaughn Oh. Do you have any idea what that version would be or where I can find that out? Or better, do you know any other frameworks(latest) for building crowd-sourcing platforms (preferably with MIT or Apache License)?

Thanks for the tip!

Edit: Found the version - 1.4.2 works

chrisvaughn commented 8 years ago

@blumonkey looks like we are running 1.4.5. I imagine anything in 1.x releases would work, I think it's goes up to 1.7 before they focused on 2.x. I don't know of any other frameworks like this. I wish this project was active.

justinoverton commented 8 years ago

I ran into this also. Could you update the readme to clarify the required version?