Tuesday, October 23, 2012

Configuring Hive metastore to remote database - WSO2 BAM2

Hive Metastore

Hive metastore is the central repository which is used to store Hive metadata. We use embedded H2 database as the default hive metastore. Therefore only one hive session can access the metastore. 

Using remote MYSQL database as Hive metastore. 

You can configure hive metastore to MYSQL database as follows. 

Edit hive-site.xml located at WSO2_BAM2_HOME/repository/conf/advanced/ directory.

  <description>JDBC connect string for a JDBC metastore</description>
  <description>Driver class name for a JDBC metastore</description>
  <description>username to use against metastore database</description>
  <description>password to use against metastore database</description>

Put MYSQL driver into WSO2_BAM2_HOME/repository/components/lib

Now You have successfully configured the hive metastore to MYSQL database. Now restart the BAM server. 


Unknown said...

Cassandra being more suitable for real time transaction processing and the serving of interactive data.

Unknown said...

Can you also share tips on connecting WSO2BAM hive to a fully distributed Hadoop cluster.
We have commented/uncommented the recommended sections from hive-site.xml, but the hive script fails.
Although it seems like the Hive Tables are created, but looks like it fails to submit jobs to Hadoop ( select xyz from hive_table fails)

Hannah Baker said...

Thank you for your post.hawkscode is one of the best IT service provider. It provides ERP development, IOS development,android development.