Description
NullPointerException might occur if table.getParameters() returns null when method isNonNativeTable is invoked in class MetaStoreUtils.
public static boolean isNonNativeTable(Table table) { if (table == null) { return false; } return (table.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE) != null); }
This will cause a stack trace without any suggestive information at client:
org.apache.hadoop.hive.metastore.api.MetaException: java.lang.NullPointerException at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$create_table_with_environment_context_result$create_table_with_environment_context_resultStandardScheme.read...