You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by "Felix.徐" <yg...@gmail.com> on 2013/05/29 10:37:54 UTC

How to change the separator of INSERT OVERWRITE LOCAL DIRECTORY

Hi all,

I am wondering how to change the fields separator of INSERT OVERWRITE LOCAL
DIRECTORY , does anyone have experience doing this ? thanks!

Re: How to change the separator of INSERT OVERWRITE LOCAL DIRECTORY

Posted by Ted Xu <tx...@gopivotal.com>.
HI Felix,

I believe it is bug not able to change field seperator when sinking data to
files. It is already fixed in version 0.11.0. See
https://issues.apache.org/jira/browse/HIVE-3682.


On Wed, May 29, 2013 at 4:37 PM, Felix.徐 <yg...@gmail.com> wrote:

> Hi all,
>
> I am wondering how to change the fields separator of INSERT OVERWRITE
> LOCAL DIRECTORY , does anyone have experience doing this ? thanks!
>



-- 
Regards,
Ted Xu

RE: How to change the separator of INSERT OVERWRITE LOCAL DIRECTORY

Posted by Tony Burton <TB...@SportingIndex.com>.
Works for me like this, using the most recent Hive on AWS, using a ~ delimiter:

> create external table mydata (<your schema here>)
row format delimited fields terminated by '~'
stored as textfile
location 's3://mybucket/path/to/data';
> insert overwrite table mydata select * from otherdata;





From: Felix.徐 [mailto:ygnhzeus@gmail.com]
Sent: 29 May 2013 09:38
To: user@hive.apache.org
Subject: How to change the separator of INSERT OVERWRITE LOCAL DIRECTORY

Hi all,

I am wondering how to change the fields separator of INSERT OVERWRITE LOCAL DIRECTORY , does anyone have experience doing this ? thanks!

**********************************************************************
Please consider the environment before printing this email or attachments

This email and any attachments are confidential, protected by copyright and may be legally privileged.  If you are not the intended recipient, then the dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system.  Neither Sporting Index nor the sender accepts responsibility for any virus, or any other defect which might affect any computer or IT system into which the email is received and/or opened.  It is the responsibility of the recipient to scan the email and no responsibility is accepted for any loss or damage arising in any way from receipt or use of this email.  Sporting Index Ltd is a company registered in England and Wales with company number 2636842, whose registered office is at Gateway House, Milverton Street, London, SE11 4AP.  Sporting Index Ltd is authorised and regulated by the UK Financial Services Authority (reg. no. 150404) and Gambling Commission (reg. no. 000-027343-R-308898-001).  Any financial promotion contained herein has been issued
and approved by Sporting Index Ltd.

Outbound email has been scanned for viruses and SPAM