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
本文介绍了Hive配置中常见的问题及其解决方案,包括路径配置、元数据库初始化及XML配置文件中特殊字符的正确使用。
767

被折叠的 条评论
为什么被折叠?



