Tim Bittersohl 2013-05-22, 16:57
-Re: Hive skipping first line
Sanjay Subramanian 2013-05-22, 17:16
Can u try doing a
Hive -e "select * from tablename"
See how many rows this gets u
From: Tim Bittersohl <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>
Reply-To: "[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>" <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>
Date: Wednesday, May 22, 2013 9:57 AM
To: "[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>" <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>>
Subject: Hive skipping first line
I got some little problem with the content of hive tables.
These table’s contents are generated by pig and do so have no header line, they are accessed as “TextFile” with an external hive table. When I fetch records through the java hive library (Version: 0.10.0-cdh4.2.0) with the “hiveClient.fetchN(rowncount)” command, it seems like he always skip the first line of data. (perhaps he’s expecting a header row?)
How can I avoid this?
=====================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.
Dean Wampler 2013-05-23, 12:01