I have Hadoop 2.7.1 and apache-hive-1.2.1 versions installed on ubuntu 14.0.
I have used MySQL DB for Hive MetaStore. Please follow the below steps:
javax.jdo.option.ConnectionURL
jdbc:mysql://localhost/metastorecreateDatabaseIfNotExist=true&useSSL=false
mysql -u hduser -pdrop database metastoreschematool -initSchema dbType mysqlNow error will go.