how to solve this error

0

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.NullPointerException

已提問 2 年前檢視次數 821 次
1 個回答
1

Hi There

Could you provide some additional info about what you are doing with Athena? IN the meantime, please take a look at this troubleshooting article and see if it applies to your use case.

You get this error when the attribute TableType isn't defined for the queried table in the AWS Glue Data Catalog. The TableType attribute defines whether the table is an external table or a view. This attribute can be defined with values, such as EXTERNAL_TABLE and VIRTUAL_VIEW. If you want to run DDL queries, such as SHOW CREATE TABLE or MSCK REPAIR TABLE, then you must define the TableType attribute. 

https://aws.amazon.com/premiumsupport/knowledge-center/athena-failed-nullpointerexception-error/

profile pictureAWS
專家
Matt-B
已回答 2 年前
profile pictureAWS
專家
Chris_G
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南