Flink异常 Required context of factory ‘org.apache.flink.xxx’ must not be null


[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.TableException: Required context of factory 'org.apache.flink.table.catalog.hive.factories.HiveCatalogFactory' must not be null.




这种一般是META-services里面的文件内容缺少导致的, 比如上面的缺少在org.apache.flink.table.factories.Factory文件中缺少了org.apache.flink.table.catalog.hive.factories.HiveCatalogFactory这一行