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 14 in Big Data Hadoop by Suresh
653 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 14 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 in Big Data Hadoop by Omkar
• 67,380 points
1,595 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
• 10,670 points
285 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,810 points
102 views
0 votes
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
• 10,670 points
2,677 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
• 10,670 points
279 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
13,284 views
0 votes
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,240 points
975 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
4,583 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,280 points
2,033 views