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 by Vardhan 43 views
Hey there! Do you want to load the data from hdfs or from local file system?

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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
• 65,850 points

Related Questions In Apache Kafka

0 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
3,327 views
0 votes
1 answer

Is there any change in consumer offsets if a new partition(s) is added to a Kafka topic?

Yes, it stays the same. An offset is ...READ MORE

answered Jul 9, 2018 in Apache Kafka by nitinrawat895
• 9,070 points
140 views
0 votes
11 answers

How can I delete all the messages from a Kafka topic?

To purge the Kafka topic, you need ...READ MORE

answered Jul 9, 2018 in Apache Kafka by Shubham
• 12,270 points
15,973 views
0 votes
1 answer

What is the optimum number of producers to create in Kafka?

In general, a single producer for all ...READ MORE

answered Jul 10, 2018 in Apache Kafka by nitinrawat895
• 9,070 points
873 views
0 votes
1 answer

How to delete a topic in Kafka 0.8.1.1?

Deleting topic isn't always working in 0.8.1.1 Deletion ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 9,070 points
69 views
0 votes
1 answer
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,590 points
47 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
• 9,070 points
1,670 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
• 9,070 points
130 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
8,106 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.