1、Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
需要将hive-site.xml配置文件中作为值使用的${system:java.io.tmpdir}/${system:user.name}全部替换为/path/to/hive/logs
2、Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
这是因为hive元数据库没有初始化成功的原因,在2.x版本中需要手动初始化。
bin/schematool -dbType mysql -initScheme
3、expected a semi-colon after the reference for entity "useSLL"
在xml配置文件中的url参数值后面如果有多个值,不能直接使用&,需要使用&进行转义。
<property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false</value> <description>&->&:expected a semi-colon after the reference for entity</description> </property>
最终,程序会解析出来javax.jdo.option.ConnectionURL中的&为&
Metastore connection URL: jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useSSL=false