title: message:Hive Schema version 1.2.0 does not match metastore's schema version 2.1.0 Metastore is not upgraded or corrupt
body: <p>enviroment: spark2.11 hive2.2 hadoop2.8.2</p>
  
  <p>hive shell run successfully! and hava no error or warning.
  but when run application.sh, start failed</p>
  
  <pre><code>/usr/local/spark/bin/spark-submit \
  --class cn.spark.sql.Demo \
  --num-executors 3 \
  --driver-memory 512m \
  --executor-memory 512m \
  --executor-cores 3 \
  --files /usr/local/hive/conf/hive-site.xml \
  --driver-class-path /usr/local/hive/lib/mysql-connector-java.jar \
  /usr/local/java/sql/sparkstudyjava.jar \
  </code></pre>
  
  <p>and the error tips:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Error while 
  instantiating 'org.apache.spark.sql.hive.HiveSessionState':
  ...
  Caused by: java.lang.IllegalArgumentException: Error while instantiating 
  'org.apache.spark.sql.hive.HiveExternalCatalog':
  ...
  Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to 
  instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  ...
  Caused by: java.lang.RuntimeException: Unable to instantiate 
  org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
  ...
  Caused by: MetaException(message:Hive Schema version 1.2.0 does not match 
  metastore's schema version 2.1.0 Metastore is not upgraded or corrupt)
  ...
  </code></pre>
  
  <p>i try many method to solving this errors, but errors still occurs.
  how to fix?</p>