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 in Big Data Hadoop by Gunjan
36 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 by Gitika
• 25,360 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 in Big Data Hadoop by Gitika
• 25,360 points
131 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 in Big Data Hadoop by Gitika
• 25,360 points
55 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
• 10,730 points
396 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,310 points
930 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,730 points
3,379 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
16,860 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,260 points
1,231 views
0 votes
1 answer
0 votes
1 answer
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 25 in Big Data Hadoop by Gitika
• 25,360 points
36 views