The element type "description" must be terminated by the matching end

本文解决使用cphive-default.xml.properties和hive-site.xml配置Hive时,生成新配置文件后运行Hive命令报错的问题。通过分析错误信息定位到配置文件中的问题,并提供了解决方法。
部署运行你感兴趣的模型镜像

一、hive0-10 版本使用cp hive-default.xml.properties hive-site.xml后,生成新的配置文件hive-site.xml后,运行hive 命令后报下面的错误:

hive-site.xml:180:3: The element type "description" must be terminated by the matching end-tag "</description>".
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException: The element type "description" must be terminated by the matching end-tag "</description>".

 问题产生的原因是:hite-site.xml 中缺少</description> 标签。当你使用命令sudo vim hite-site.xml 打开文件,想要找到在哪里加 </description> 时,你是不是傻眼了,这个文件有上百行呢。要是一行行的找下去...

 嘿嘿....,仔细看错误信息,信息中已提示180行,这下好了。我们使用命令:180G,光标直接跳转到 180行,加入 </description> 。再次运行hive ,这次报 end-tag </partition-dir> ,使用上面的方法可以很轻松的解决问题。

二、你的问题解决了吗?

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

start-dfs.sh [Fatal Error] yarn-site.xml:27:3: The element type "configuration" must be terminated by the matching end-tag "</configuration>". 25/06/17 04:01:18 FATAL conf.Configuration: error parsing conf yarn-site.xml org.xml.sax.SAXParseException; systemId: file:/opt/programs/hadoop-2.7.6/etc/hadoop/yarn-site.xml; lineNumber: 27; columnNumber: 3; The element type "configuration" must be terminated by the matching end-tag "</configuration>". at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150) at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2552) at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2540) at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2614) at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2564) at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2477) at org.apache.hadoop.conf.Configuration.get(Configuration.java:1047) at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1101) at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1374) at org.apache.hadoop.security.Groups.<init>(Groups.java:111) at org.apache.hadoop.security.Groups.<init>(Groups.java:99) at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:434) at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:284) at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:261) at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:806) at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:776) at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:649) at org.apache.hadoop.hdfs.tools.GetConf.run(GetCo
06-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值