2
我正在嘗試將S3從lzop-compresed文件複製到Redshift。該文件最初是通過使用帶有--outputCodec lzo
選項的S3DistCp生成的。無法從S3加載lzop壓縮文件到Redshift
的S3文件似乎是正確的壓縮,因爲我可以成功下載並在命令行它充氣:
lzop -d downloaded_file.lzo
但是,當我試圖將其加載到紅移,我得到一個錯誤:
COPY atomic.events FROM 's3://path-to/bucket/' CREDENTIALS 'aws_access_key_id=xxx;aws_secret_access_key=xxx' REGION AS 'eu-west-1' DELIMITER '\t' MAXERROR 1 EMPTYASNULL FILLRECORD TRUNCATECOLUMNS TIMEFORMAT 'auto' ACCEPTINVCHARS LZOP;
ERROR: failed to inflate with lzop: unexpected end of file.
DETAIL:
-----------------------------------------------
error: failed to inflate with lzop: unexpected end of file.
code: 9001
context: S3 key being read : s3://path-to/bucket/
query: 244
location: table_s3_scanner.cpp:348
process: query0_60 [pid=5615]
-----------------------------------------------
關於什麼可能導致負載失敗的任何想法?
您在該「文件夾」中是否有其他文件? – Guy
@Guy我沒有 - 只有一個壓縮文件。 – fblundun