Create a Hive table with a sequence file

0 votes

Hi!

I want to create a Hive table with a sequence file. Can someone tell me the steps to do this?

Thanks

Dec 20, 2018 in Apache Kafka by nguyenthaonhi
• 120 points

reshown Apr 10, 2019 by Vardhan 1,017 views
Hey there! Do you want to load the data from hdfs or from local file system?

1 answer to this question.

+1 vote

Hey! Follow these steps to create a Hive table with a sequence file:

First, create sequence file using the following command syntax:

create table table_name (schema of the table)  
row format delimited  
fields terminated by '<delimiter>'  
stored as sequencefile;

Then create hive table:

INSERT OVERWRITE TABLE sequenceTab 
SELECT * FROM emp;

If you want to use the sequence file from hdfs, you can follow the steps mentioned here:

https://www.edureka.co/community/33443/how-to-create-a-hive-table-from-sequence-file-stored-in-hdfs?show=33443#q33443

answered Dec 26, 2018 by Omkar
• 69,210 points

Related Questions In Apache Kafka

+2 votes
10 answers

Writing the Kafka consumer output to a file

System.out.println(String.valueOf(output.offset()) + ": " + new String(bytes, ...READ MORE

answered Dec 7, 2018 in Apache Kafka by Harsh
36,738 views
0 votes
1 answer

How can I create a topic in apache kafka?

Hi@akhtar, To create kafka topic you can use ...READ MORE

answered Feb 6, 2020 in Apache Kafka by MD
• 95,440 points
805 views
0 votes
1 answer
0 votes
1 answer

[Mac] Writing the Kafka consumer output to a CSV file

Hi@ I don't know it will work or ...READ MORE

answered Feb 18, 2020 in Apache Kafka by MD
• 95,440 points
3,705 views
0 votes
1 answer

How to create a Kafka topic in a broker?

Hi@akhtar, To create a Kafka topic, you need ...READ MORE

answered Dec 7, 2020 in Apache Kafka by MD
• 95,440 points
1,320 views
0 votes
1 answer

How to create a Kafka producer?

Hi@MD, Generally, Kafka producer comes from an API. ...READ MORE

answered Dec 7, 2020 in Apache Kafka by akhtar
• 38,230 points
552 views
0 votes
1 answer

What is Metastore in Hive?

It stores metadata for Hive tables (like their schema ...READ MORE

answered Dec 20, 2018 in Big Data Hadoop by Frankie
• 9,830 points
2,860 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
10,556 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
• 11,380 points
2,184 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
104,201 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