Working with Apache Hive metastore