I’m using Hive for some data processing. But whenever I start the Hive-Shell it creates a metastore at the current directory and I can not access to my tables which I created in another directory. This is a bit annoying to me that I have go into specific directory, then start Hive-Shell to see my tables.
I tried to configure the path in hive-default.xml, but no success.
Thanks
Don’t ever edit hive-default.xml, instead edit hive-site.xml.
The relevant property is javax.jdo.option.ConnectionURL
You may want to use mysql instead of derby for your metastore.
A short article on this is http://blog.milford.io/2010/06/installing-apache-hive-with-a-mysql-metastore-in-centos/