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,050 points
86 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,140 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
55 views
0 votes
1 answer
0 votes
7 answers

How to run a jar file in hadoop?

I used this command to run my ...READ MORE

answered Dec 10, 2018 in Big Data Hadoop by Dasinto
4,037 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,150 points
2,062 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,150 points
199 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,564 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
771 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,140 points
622 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,140 points
54 views