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?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -