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 21 in Big Data Hadoop by slayer
• 29,170 points
120 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 21 by Omkar
• 67,620 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 in Big Data Hadoop by Nanda
427 views
0 votes
1 answer

Parquet & Avro File hadling with HIVE

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

answered Jul 25 in Big Data Hadoop by Tarun
35 views
0 votes
1 answer
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
3,003 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
334 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
14,846 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
1,102 views
0 votes
1 answer

How to append data to a parquet file?

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

answered Jan 11 in Big Data Hadoop by Omkar
• 67,620 points
1,148 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
• 67,620 points
68 views