Hive3 启动 提示:com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character分析

java哥 阅读:251 2021-03-31 14:11:19 评论:0

Windows10 系统启动Hive3 提示如下错误信息:

com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0x8 
 at [row,col,system-id]: [3213,96,"file:/C:/hive/apache-hive-3.0.0-bin/conf/hive-site.xml"] 
        at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621) 
        at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491) 
        at com.ctc.wstx.sr.StreamScanner.reportIllegalChar(StreamScanner.java:2456) 
        at com.ctc.wstx.sr.StreamScanner.validateChar(StreamScanner.java:2403) 
        at com.ctc.wstx.sr.StreamScanner.resolveCharEnt(StreamScanner.java:2369) 
        at com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1515) 
        at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2828) 
        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123) 
        at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2883) 
        at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2817) 
        at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2689) 
        at org.apache.hadoop.conf.Configuration.get(Configuration.java:1160) 
        at org.apache.hadoop.hive.metastore.conf.MetastoreConf.getBoolVar(MetastoreConf.java:1346) 
        at org.apache.hadoop.hive.metastore.conf.MetastoreConf.newMetastoreConf(MetastoreConf.java:1174) 
        at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8650) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
        at java.lang.reflect.Method.invoke(Method.java:498) 
        at org.apache.hadoop.util.RunJar.run(RunJar.java:239) 
        at org.apache.hadoop.util.RunJar.main(RunJar.java:153)

造成问题的原因:C:\hive\apache-hive-3.0.0-bin\conf\hive-site.conf 配置文件的3213 行的96个字符包含特殊字符:

将相关特殊字符注释即可 

声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
搜索
KIKK导航

KIKK导航

排行榜
关注我们

一个IT知识分享的公众号