AWS Glue 爬网程序更改 serde

2024-04-28

我有带引号字符串的 csv,默认情况下爬虫会使用 LazySimpleSerde 注册该表。无论如何,我可以通过编程方式更改它以使用 OpenCSVSerde 吗?


您可以使用 boto3,它是一个 aws sdk。您可以使用 python 或任何其他语言简单地调用他们的 api。要准确回答您的问题 - 您将需要调用 update_table() api 来更新粘合表使用的 serde。

https://boto3.readthedocs.io/en/latest/reference/services/glue.html#Glue.Client.update_table https://boto3.readthedocs.io/en/latest/reference/services/glue.html#Glue.Client.update_table

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

AWS Glue 爬网程序更改 serde 的相关文章

随机推荐