Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # user >> External Table to Sequence File on HDFS

Ranjitha Chandrashekar 2013-04-04, 05:43
Sanjay Subramanian 2013-04-04, 06:11
Copy link to this message
RE: External Table to Sequence File on HDFS
Hi Sanjay

Thank you for the quick response.

I got the input format part from the link that u sent. But in order to read that table in Hive, i need to specify the SerDe, where exactly do I specify this class file.

Is it something like,

create table seq10 (key STRING, value STRING) ROW FORMAT SERDE 'com.org.SequenceFileKeyRecordReader' STORED AS INPUTFORMAT 'com.org.SequenceFileKeyInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat' LOCATION <hdfs path>;

Is this the right approach where i specify the input file format and write a custom serDe too..?

Please correct me if I am wrong


From: Sanjay Subramanian [mailto:[EMAIL PROTECTED]]
Sent: 04 April 2013 11:41
Subject: Re: External Table to Sequence File on HDFS

Check this out

From: Ranjitha Chandrashekar <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>
Date: Wednesday, April 3, 2013 10:43 PM
Subject: External Table to Sequence File on HDFS

I want to create a external hive table to a sequence file(each record -> key value) on HDFS. How will the field names be mapped to the column names.

Please Suggest.



The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

=====================This email message and any attachments are for the exclusive use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message along with any attachments, from your computer system. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.