Sqoop + S3 + Parquet results in Wrong FS error

冷暖自知 提交于 2019-12-13 04:49:58

问题


When trying to import data to S3 in Parquet format using Sqoop, as follows:

bin/sqoop import --connect 'jdbc:[conn_string]' --table [table] --target-dir s3a://bucket-name/ --hive-drop-import-delims --as-parquetfile

... I get the following error:

ERROR tool.ImportTool: Imported Failed: Wrong FS: s3a://bucket-name/, expected: hdfs://localhost:9000

I have no problem importing non-parquet data or working with s3a directly through HDFS. Seems like this issue, but it was supposedly fixed many versions ago.


回答1:


Sqoop import in parquet format currently doesn't support s3 as target directory, work around you can use is to import data to hdfs and then use distcp to copy the from hdfs to s3




回答2:


Sqoop doesn't support import to parquet file if you are using S3 as a target directory.



来源:https://stackoverflow.com/questions/33223110/sqoop-s3-parquet-results-in-wrong-fs-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!