在 AWS Glue 中查询通过爬网 XML 创建的表时,AWS Athena 出错
我已经通过 AWS Glue 中的爬网程序解析了一个 XML 文件,该文件创建了一个表。我尝试在 AWS Athena 中获取相同的 DDL 脚本,但出现以下错误:
FAILED:执行错误,从 org.apache.hadoop.hive.ql.exec.DDLTask 返回代码 1。 java.lang.NullPointerException。此查询针对“xyz”数据库运行,除非由查询限定。
同样,对于 select 语句,我收到以下错误:
HIVE_UNSUPPORTED_FORMAT:无法创建输入格式
我按照以下步骤操作本文档并尝试在管理控制台内的表属性中添加 TableType 属性来解析 DDL 部分,但没有帮助。 https://aws.amazon.com/premiumsupport/knowledge -center/athena-failed-nullpointerexception-error/
任何解决问题的建议或帮助表示赞赏。如果需要任何其他信息,请告诉我。
注意:我不应该将 XML 文件转换为任何其他格式。
I have parsed an XML file through the crawler in AWS Glue which created a table. I'm trying to get the DDL script for the same in AWS Athena and getting the following error:
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.NullPointerException. This query ran against the "xyz" database, unless qualified by the query.
Similarly for a select statement I get the following error:
HIVE_UNSUPPORTED_FORMAT: Unable to create input format
I followed the steps in this document and try adding the TableType attribute in the table properties inside management console to resolve the DDL part but it didn't help. https://aws.amazon.com/premiumsupport/knowledge-center/athena-failed-nullpointerexception-error/
Any suggestion or help to resolve the issue is appreciated. Let me know if any other information is required.
Note : I'm not supposed to convert the XML file to any other format.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论