Creating a Parquet or Avro file

0 votes
How we can create Parquet file or AVro format in hadoop? Can we directly export it using the extension of the format we want?
Jan 22, 2019 in Big Data Hadoop by slayer
• 29,370 points
1,096 views

1 answer to this question.

0 votes

In hadoop, we do not create different file formats. Instead, we can process different file formats. 

You can create a table that can store data in parquet format and view as well. Example:

Creating a table in hive to store parquet format:

image
We cannot load text file directly into parquet table, we should first create an alternate table to store the text file and use insert overwrite command to write the data in parquet format.

We will create a table to store text data

Load the data into the table 
image

Check the data
image
Here the text data is already converted into parquet file inside table present in hive. 

Exporting the table with desired format extension will not work.

answered Jan 22, 2019 by Omkar
• 69,220 points

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer

How to import data in sqoop as a Parquet file?

Sqoop allows you to import the file ...READ MORE

answered May 15, 2019 in Big Data Hadoop by Nanda
11,001 views
0 votes
1 answer

Parquet & Avro File hadling with HIVE

For avro you can follow the format ...READ MORE

answered Jul 25, 2019 in Big Data Hadoop by Tarun
2,590 views
0 votes
1 answer
+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
11,028 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
2,536 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
108,832 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,350 points
4,612 views
+1 vote
1 answer

How to append data to a parquet file?

Try using Spark API to append the ...READ MORE

answered Jan 11, 2019 in Big Data Hadoop by Omkar
• 69,220 points
16,656 views
0 votes
1 answer

Hadoop: `.' no such file or directory while installing

Try hadoop fs -mkdir -p /user/[Username] and then run ...READ MORE

answered Nov 2, 2018 in Big Data Hadoop by Omkar
• 69,220 points
1,594 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP