Parquet to ORC format in Hive

0 votes

I have data in hive managed table(xyz table) with parquet format. I want to convert this into ORC format.

Steps that i used.

  • Created a sample table(tmp orc table) and saved it as ORC.
  • Loaded the data from (xyz table) Parquet table into the new created table(tmp orc table) 

but it is failing.

Feb 15, 2019 in Big Data Hadoop by Suresh
3,484 views

1 answer to this question.

0 votes

Follow the below steps to load the data into an orc table from a parquet table in hive,

1) Create a table and load data in it,

image

I have created a table, stored it as a textfile and loaded the text file in it as the text file cannot be loaded directly in the parquet table.

2) Create a parquet table,

image

3) Insert the data in the parquet table from the text table,

image

4) Check if the data is inserted into the parquet table or not,

image

5) Create an orc table

image

6) Insert the data in the orc table from the parquet table

image

7) Check the contents of the orc table

image

answered Feb 15, 2019 by Raj

Related Questions In Big Data Hadoop

0 votes
1 answer

How to create a parquet table in hive and store data in it from a hive table?

Please use the code attached below for ...READ MORE

answered Jan 28, 2019 in Big Data Hadoop by Omkar
• 69,190 points
15,684 views
0 votes
1 answer

How Impala is fast compared to Hive in terms of query response?

Impala provides faster response as it uses MPP(massively ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
1,108 views
0 votes
1 answer

How to format the output being written by MapReduce in Hadoop?

Here is a simple code demonstrate the ...READ MORE

answered Sep 5, 2018 in Big Data Hadoop by Frankie
• 9,830 points
1,316 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
8,644 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
1,525 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
76,443 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
3,312 views
+2 votes
5 answers

How to transpose/pivot data in hive?

Below is also a way for Pivot SELECT ...READ MORE

answered Oct 12, 2018 in Big Data Hadoop by Rahul
16,289 views
0 votes
1 answer

How to convert a string to timestamp with milliseconds in Hive?

 concatenation of substrings using the following code: select ...READ MORE

answered Oct 31, 2018 in Big Data Hadoop by Neha
• 6,300 points
15,068 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP