0
我有一个Spark作业,在编写的COPY
部分失败。我已经在S3中处理了所有的输出,但在计算如何手动加载时遇到了问题。如何手动将火花红移AVRO文件加载到Redshift中?
COPY table
FROM 's3://bucket/a7da09eb-4220-4ebe-8794-e71bd53b11bd/part-'
CREDENTIALS 'aws_access_key_id=XXX;aws_secret_access_key=XXX'
format as AVRO 'auto'
在我的文件夹中有一个_SUCCESS
,_committedxxx
和_startedxxx
文件,然后将99个文件都开始使用前缀part-
。当我运行此我得到一个stl_load_error
- >Invalid AVRO file found. Unexpected end of AVRO file.
如果我采取这一前缀了,然后我得到:
[XX000] ERROR: Invalid AVRO file Detail: ----------------------------------------------- error: Invalid AVRO file code: 8001 context: Cannot init avro reader from s3 file Incorrect Avro container file magic number query: 10882709 location: avropath_request.cpp:432 process: query23_27 [pid=10653] -----------------------------------------------
这是可能的吗?这将是很好的保存处理。