I’m having this same issue, but my scenario is during an automated installation from a blueprint that was exported from a running instance.
I’m using Ambari 1.7.0 and HDP 2.2. Of the 96 tasks submitted when I post my blueprint, 81 are successful. Then I hit this error on task 82:
Fail: Execution of 'export HIVE_CONF_DIR=/etc/hive/conf.server ; /usr/hdp/current/hive-client/bin/schematool -initSchema -dbType mysql -userName hive -passWord [PROTECTED]' returned 1. 15/05/02 15:32:14 WARN conf.HiveConf: HiveConf of name hive.optimize.mapjoin.mapreduce does not exist
15/05/02 15:32:14 WARN conf.HiveConf: HiveConf of name hive.heapsize does not exist
15/05/02 15:32:14 WARN conf.HiveConf: HiveConf of name hive.server2.enable.impersonation does not exist
15/05/02 15:32:14 WARN conf.HiveConf: HiveConf of name hive.auto.convert.sortmerge.join.noconditionaltask does not exist
Metastore connection URL: jdbc:mysql://bbtestmgmt0.bbtest.ruetracking.com/hive?createDatabaseIfNotExist=true
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: hive
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
*** schemaTool failed ***
Is there a way to fix the root cause in my blueprint? Or some other way to *fix* the environment before the blueprint starts to post?