Check your hive-site.xml for the value of the javax.jdo.option.ConnectionURL property. If you do not define this explicitly, the default will use the relative path to create the metastore hive (jdbc: derby :; databaseName = metastore_db; create = true), which will differ depending on where you are starting the process from. This explains why you do not see the table through the show tables.
To overcome this, you need to define this property value in your hive-site.xml using an absolute path
source share