Which java class handles the output record encoding into files which result from Hive queries

0 votes
Can anyone suggest which class handles the output record encoding into files which results from Hive queries?
Jun 26, 2019 in Big Data Hadoop by Gunjan
896 views

Why do you want access to "output record encoding generated from Hive queries"?? Anything important that we should be aware of??

Hi,

This is because of Hive uses non-printing characters that are 'delimiters' by default, So when TEXTFILES is used, where it implies all the fields are encoded using alphanumeric characters, and each line is considered a separate record. 

So the record encoding is handled by an input format object and for completeness, there is an output format that Hive uses for writing the output of Queries to files. So for TEXTFILE, the Java class named:

org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

The above-mentioned class is used for output.

1 answer to this question.

0 votes

Hey,

This particular class handles the output record encoding into files which result from Hive queries written below:

 org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
answered Jun 26, 2019 by Gitika
• 65,770 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to load data from flat files into Hive?

Hey, You can load data from flat files ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
3,440 views
0 votes
1 answer

How to load data from flat files into different partitions of Hive table?

Hi, You can load data from flat files ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
1,816 views
0 votes
1 answer

What are the various ways to import files into HDFS?

There are various tools and frameworks available ...READ MORE

answered Apr 13, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
3,578 views
0 votes
1 answer

Moving files in Hadoop using the Java API?

I would recommend you to use FileSystem.rename(). ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,669 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
11,029 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,836 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
0 votes
1 answer
0 votes
1 answer

Which java class handles the Input record encoding into files which store the tables in Hive?

Hey, This particular format will handle the input ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
953 views
0 votes
1 answer

Can hive queries be executed from script files? And how?

Hey, It is possible by using the source ...READ MORE

answered Jun 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
981 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