Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How can I upload ORC files to Hive tables?

avatar
New Member

Hello,

I am trying to upload an ORC file into a hive table in Visual Studio. However, I keep getting the following error:

"Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask"

Is there a way to actually upload an ORC file using the following SQL?

create database if not exists HIVE_ORC;

CREATE TABLE IF NOT EXISTS HIVE_ORC.test_internal_ORC ( t1 string, t2 string, t3 string, t4 string, t5 string, t6 string, t7 string )

ROW FORMAT DELIMITED FIELDS TERMINATED BY '|'

LOCATION 'wasb:///hadooplinuxcluster-2017-05-31t23-42-02-589z/ORC_Test';

LOAD DATA INPATH './000032_0' INTO TABLE hive_ORC.test_Orc;

1 ACCEPTED SOLUTION

avatar
Guru

Hi @Ali Mahinpoor

See this post that might help: https://community.hortonworks.com/questions/47594/how-can-i-upload-ocr-files-to-hive.html

As always if you find this post useful, please "Accept" the answer.

View solution in original post

1 REPLY 1

avatar
Guru

Hi @Ali Mahinpoor

See this post that might help: https://community.hortonworks.com/questions/47594/how-can-i-upload-ocr-files-to-hive.html

As always if you find this post useful, please "Accept" the answer.