将 Pig 的结果直接存储到 Redshift?
Store the results from Pig directly to Redshift?
有没有办法将 Pig 的结果直接存储到 Redshift 上的 table?
是的,但您可能不会喜欢它 - 它效率不高。
下载 jdbc 驱动程序 (http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html)
使用 PiggyBank DBStorage,mysql 示例 here。
更好的方法是准备csv然后导入。
有没有办法将 Pig 的结果直接存储到 Redshift 上的 table?
是的,但您可能不会喜欢它 - 它效率不高。
下载 jdbc 驱动程序 (http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html)
使用 PiggyBank DBStorage,mysql 示例 here。
更好的方法是准备csv然后导入。