【发布时间】:2016-06-06 23:04:21
【问题描述】:
有没有办法将 Pig 中的结果直接存储到 Redshift 上的表中?
【问题讨论】:
标签: amazon-web-services apache-pig amazon-redshift
有没有办法将 Pig 中的结果直接存储到 Redshift 上的表中?
【问题讨论】:
标签: amazon-web-services apache-pig amazon-redshift
是的,但您可能不会喜欢它 - 它效率不高。
下载jdbc驱动(http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html)
使用 PiggyBank DBStorage,mysql 示例here。
更好的方法是准备 csv 然后导入它。
【讨论】: