unit testing - How to reset the meta store with Hive on Spark? -
i want reset hive meta store hive on spark in unit test.
so far, i've reconfigured jdo use in-memory derby db:
system.setproperty("javax.jdo.option.connectionurl", "jdbc:derby:memory:metastore_db;create=true"); system.setproperty("javax.jdo.option.connectiondrivername", "org.apache.derby.jdbc.embeddeddriver");
there seems no proper life cycle management jdo in hive, hive/jdo complains if drop or shutdown database.
does know of way reset meta store each test case runs fresh, clean meta store?