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
23 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
• 19,720 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
• 19,720 points
25 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
• 19,720 points
27 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,110 points
213 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,190 points
688 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,110 points
2,056 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,519 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
768 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
• 19,720 points
17 views