Skip to content

Error loading data into Hive #8

@sbnagle2

Description

@sbnagle2

I am attempting to load data into hive. I have Elasticsearch running on port 9200, Hive running on 8080. Any attempts at POSTing JSON data to the Hive server give this error - {"error":"unexpected end of JSON input"}. My JSON is valid. I even tried simply loading the example JSON from this repo and received the same error.

I was able to post the data directly to the Elasticsearch port, in index "hive," but I'm not able to utilize any of the Hive API endpoints.

Here's the actual readout from the Hive server:
2015/02/19 10:52:04 Creating index hive
2015/02/19 10:52:04 Done configuring elasticsearch
2015/02/19 10:52:04 Step 2: creating project.
2015/02/19 10:52:04 {"error":"unexpected end of JSON input"}

Here's the JSON I'm trying to POST:
{ "Project":
{ "Id": "idnc", "Name": "IDNC", "Description": "Test loading IDNC image data" },
"Tasks":
[
{ "Name": "categorize", "Description": "categorize images", "CurrentState": "available", "AssignmentCriteria":
{"SubmittedData": { "categorize": {} } }, "CompletionCriteria":
{ "Total": 50, "Matching": 50 } },
{ "Name": "vote", "Description": "vote on image quality (from 1 to 10)", "CurrentState": "waiting", "AssignmentCriteria": { "SubmittedData": { "categorize": { "ad-content": "usable" }, "vote": {} } }, "CompletionCriteria": { "Total": 2, "Matching": 2 } } ], "Assets": [ { "Name": "DIL19720801", "Url": "http://idnc.library.illinois.edu/cgi-bin/imageserver/imageserver.pl?oid=DIL19720801.2.29.2&color=all&ext=jpg&area=2&width=700" }, { "Name": "DIL19661012", "Url": "http://idnc.library.illinois.edu/cgi-bin/imageserver/imageserver.pl?oid=DIL19661012.2.12.2&color=all&ext=jpg&area=7&width=700" }, { "Name": "DIL19640213", "Url": "http://idnc.library.illinois.edu/cgi-bin/imageserver/imageserver.pl?oid=DIL19640213.2.16.1&color=all&ext=jpg&area=11&width=700" }, { "Name": "DIL19691217", "Url": "http://idnc.library.illinois.edu/cgi-bin/imageserver/imageserver.pl?oid=DIL19691217.2.22.2&color=all&ext=jpg&area=1&width=700" } ] }

Any suggestions as to what I'm doing wrong here are welcomed. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions