Monday, December 30, 2013

Wherever (Different Directory) I run hive query, it creates new metastore_db, please explain the reason for it?

        Whenever you run the hive in embedded mode, it creates the local metastore. And before creating the metastore it looks whether metastore already exist or not. This property is defined in configuration file hive-site.xml. Property is “javax.jdo.option.ConnectionURL” with default value “jdbc:derby:;databaseName=metastore_db;create=true”. So to change the behavior change the location to absolute path, so metastore will be used from that location. 

0 comments:

Post a Comment