代码之家  ›  专栏  ›  技术社区  ›  Soerendip

配置单元引发:WstxParsingException:非法字符实体:扩展字符(代码0x8)

  •  3
  • Soerendip  · 技术社区  · 6 年前

    我安装了hadoop和hive this 辅导的。教程已经过时了,所以我使用了当前的版本。启动hive时,出现以下错误:

    SLF4J:实际绑定的类型为 [org.apache.logging.slf4j.Log4jLoggerFactory]线程中出现异常 “main”java.lang.RuntimeException: 扩展字符(代码0x8,位于[行、列、系统id]: [3210,96,"file:.../software/apache-hive-3.1.0-bin/conf/hive-site.xml"] org.apache.hadoop.conf.Configuration.loadResource(配置。java:3003) 在 org.apache.hadoop.conf.Configuration.getProps(配置。java:2806) 在org.apache.hadoop.conf.Configuration.get(Configuration。java:1460) 在org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf。java:5063) org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf。java:5150) 在org.apache.hadoop.hive.conf.HiveConf.(HiveConf。java:5093) 在 org.apache.hadoop.hive.common.LogUtils.initHiveLog4jCommon(LogUtils。java:97) 在org.apache.hadoop.hive.cli.CliDriver.run(CliDriver。java:699)在 org.apache.hadoop.hive.cli.CliDriver.main(CliDriver。java:683)在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)位于 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl。java:62) 在 在java.lang.reflect.Method.invoke(方法。java:498)在 org.apache.hadoop.util.RunJar.main(RunJar。java:232)

    我查看了指定的文件,发现以下条目:

    <description>
      Ensures commands with OVERWRITE (such as INSERT OVERWRITE) acquire Exclusive locks for&#8;transactional tables.  This ensures that inserts (w/o overwrite) running concurrently
      are not hidden by the INSERT OVERWRITE.
    </description>
    

    . 我在文件中添加了一些配置行,如教程中所述,尽管我根本没有触及这些行。我必须下载不同版本的hive吗?

    2 回复  |  直到 6 年前
        1
  •  28
  •   pvy4917    6 年前

    你家里有这样的东西吗 hive-site.xml

    不会被插入覆盖隐藏。

    它抛出了这个错误,因为单词之间有一个特殊的字符() 事务性 . 要么删除该字符,要么复制并粘贴(替换)介于两者之间的字符 <description> </description> .

    <description>
         Ensures commands with OVERWRITE (such as INSERT OVERWRITE) acquire Exclusive locks for 
         transactional tables. This ensures that inserts (w/o overwrite) running concurrently
         are not hidden by the INSERT OVERWRITE.
    </description>
    
        2
  •  2
  •   Kanthishere    6 年前

    取消3210,96行和列的特殊特许,只需重新运行配置单元。 [3210,96,“文件:/usr/local/hive/conf/hive site.xml”]