登陆mysql初始化hive元数据库时出现下面的错时
Exception in thead"main" Java. lang. Runtimerxception com. ctc. wstx. exc. WstxParsing Exception illegal processing instration target(“xml”)
说明你在解析XML数据时出现了错误。
接下来分析一下这几句话
1:Exception in thead“main”:指一部分指示 Java 程序的主线程中发现异常
2:Java. lang. Runtimerxception:他表示程序逻辑错误
3:com. ctc. wstx. exc. WstxParsing Exception:他表示解析XML文档出现错误
4:illegal processing instration target(“xml”):这一部分就在说到底出了什么错误
需要我们找到XML 文档中不对的指令,并将目标更改为xml以外的其他内容。
解决问题:
进入cd /soft/hive/conf 文件里在配置hive-site.xml里面更改配置
如下图
这样问题解决了