异常信息:
22/01/18 20:21:34 [main] WARN HiveSessionCatalog: The current account does not have the permission of database [adm], It may be a virtual database. Error in query: Table or view not found: `ads`.`ads_d07_dddrrrm_batch_det`; line 1 pos 14; 'GlobalLimit 10 +- 'LocalLimit 10 +- 'Project [*] +- 'Filter ('dt = 2022-01-17) +- 'UnresolvedRelation `ads`.`ads_d07_dddrrrm_batch_det`
解决方案:
添加参数--conf spark.sql.externalCatalog.requireDbExists.enabled=false