Copy Rejected Data

Moderator: NorbertKrupa

ClevelandSteve
Newbie
Newbie
Posts: 16
Joined: Fri Aug 09, 2013 7:10 pm

Re: Copy Rejected Data

Post by ClevelandSteve » Tue Sep 23, 2014 9:41 pm

knicely87 wrote:Since you are using a shared directory maybe you need to have unique file names for each node?

Example:

Copy myTable From '/myDirectory/*' On Any Node
Rejected Data '/rejects_directory/node1.rej' On node_1, '/rejects_directory/node2.rej' on node_2
Exceptions '/exceptions_directory/node1.exp' On node_1, '/exceptions_directory/node2.exp' on node_2
Well the files I'm loading are numbered, i.e. source001, source002, etc. Thus my copy statement reads

Code: Select all

Copy myTable From '/myDirectory/source*' On Any Node
Therefore the reject file names would have unique file names, i.e. source001-Copy-From-Rejected, etc.

ClevelandSteve
Newbie
Newbie
Posts: 16
Joined: Fri Aug 09, 2013 7:10 pm

Re: Copy Rejected Data

Post by ClevelandSteve » Tue Sep 23, 2014 9:47 pm

scutter wrote:I didn’t see any information in this thread on the version being used - or maybe I missed it. If you’re using 7.0 or later you can use REJECTED DATA AS TABLE and avoid this issue. But I imagine you would have tried that already so you must be on 6.1.3? :-)
Yes it's version 6.1.3. I opened a ticket with Vertica support on this and went in circles with them for weeks. In the end they basically said upgrade to 7 and use REJECTED DATA AS TABLE. Unfortunately upgrading the database would fall under the responsibilities of our SysOps group and it would never be a high enough priority for them to do so.

scutter
Master
Master
Posts: 302
Joined: Tue Aug 07, 2012 2:15 am

Re: Copy Rejected Data

Post by scutter » Wed Sep 24, 2014 2:43 pm

it would never be a high enough priority for them to do so.
Just find a way to crash the database regularly so that they get paged often in the middle of the night. Then they’ll be motivated to do an upgrade :-)
Sharon Cutter
Vertica Consultant, Zazz Technologies LLC

Benjamin_e
Newbie
Newbie
Posts: 15
Joined: Tue Aug 26, 2014 1:43 pm

Re: Copy Rejected Data

Post by Benjamin_e » Mon Dec 01, 2014 4:04 pm

In order toadd rejections and exceptions you must specified directories that already exsits . The copy not create the folders for you.. for bulk upload.

Post Reply

Return to “Vertica Data Load”