Vertica 6.0 and COPY LOCAL issue
Posted: Tue Jun 12, 2012 4:42 pm
Hi,
I migrate my database from vertica 5.1 to the new Vertica 6.0 because I need to manage the rejected data.
The documentation says :
LOCAL : "Specifies that all paths for the COPY statement are on the
client system and that all COPY variants are initiated from a
client. You can use the LOCAL and STDIN parameters
together. See Using the COPY and LCOPY Statements in the
Administrator's Guide."
Administrator Guide says:
REJECTED DATA : "Indicates the file in which to save information about
rejected data that specifies the file path. For COPY
LOCAL, the exceptions file must be on the client."
So I execute the following COPY statement :
COPY public.TEST_LOAD_TABLE (A, B, DATADATE FORMAT 'YYYYMMDDHH24MISS', N) FROM LOCAL '/var/work/VERTICA_FLOW8.txt' DELIMITER '|' TRAILING NULLCOLS REJECTED DATA '/var/VERTICA_FLOW/rejected/VERTICA_FLOW8.txt' DIRECT NO COMMIT;
but the following error occurred :
com.vertica.util.ServerException: [Vertica][VJDBC](4368) ERROR: Permission denied for storage location [/var/VERTICA_FLOW/rejected/VERTICA_FLOW8.txt]
Thanks in advance.
I migrate my database from vertica 5.1 to the new Vertica 6.0 because I need to manage the rejected data.
The documentation says :
LOCAL : "Specifies that all paths for the COPY statement are on the
client system and that all COPY variants are initiated from a
client. You can use the LOCAL and STDIN parameters
together. See Using the COPY and LCOPY Statements in the
Administrator's Guide."
Administrator Guide says:
REJECTED DATA : "Indicates the file in which to save information about
rejected data that specifies the file path. For COPY
LOCAL, the exceptions file must be on the client."
So I execute the following COPY statement :
COPY public.TEST_LOAD_TABLE (A, B, DATADATE FORMAT 'YYYYMMDDHH24MISS', N) FROM LOCAL '/var/work/VERTICA_FLOW8.txt' DELIMITER '|' TRAILING NULLCOLS REJECTED DATA '/var/VERTICA_FLOW/rejected/VERTICA_FLOW8.txt' DIRECT NO COMMIT;
but the following error occurred :
com.vertica.util.ServerException: [Vertica][VJDBC](4368) ERROR: Permission denied for storage location [/var/VERTICA_FLOW/rejected/VERTICA_FLOW8.txt]
Thanks in advance.