@淮南 2022-09-29 10:01 采纳率: 33.3%
浏览 13
已结题

hadoop格式化失败

问题遇到的现象和发生背景
用代码块功能插入代码,请勿粘贴截图

下面是core-site.xml文件


<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>




<configuration>

<property>
        <name>fs.defaultFS</name>
        <value>hdfs://hadoop102:8020</value>
</property>

<property>
        <name>hadoop.tmp.dir</name>
        <value>/opt/module/hadoop/data</value>
</property>

<property>
        <name>hadoop.http.staticuser.user</name>
        <value>atxiaoxiang</value>
</property>


<property>
        <name>hadoop.proxyuser.atxiaoxiang.hosts</name>
        <value>*</value>
</property>

<property>
        <name>hadoop.proxyuser.atxiaoxiang.groups</name>
        <value>*</value>
</property>

<property>
        <name>hadoop.proxyuser.atxiaoxiang.users</name>
        <value>*</value>
</property>
</configuration>


运行结果及报错内容
报错信息:
************************************************************/
2022-09-29 09:44:29,416 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2022-09-29 09:44:29,474 ERROR conf.Configuration: error parsing conf core-site.xml
com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:640)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1004)
    at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:757)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2081)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1181)
    at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3320)
    at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3114)
    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3007)
    at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2968)
    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2848)
    at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
    at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
    at org.apache.hadoop.util.ShutdownHookManager$HookEntry.<init>(ShutdownHookManager.java:207)
    at org.apache.hadoop.util.ShutdownHookManager.addShutdownHook(ShutdownHookManager.java:304)
    at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:723)
    at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:707)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1754)
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:304)
    at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:190)
    at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:89)
    at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:998)
    ... 17 more
2022-09-29 09:44:29,477 ERROR namenode.NameNode: Failed to start namenode.
java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3024)
    at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2968)
    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2848)
    at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
    at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
    at org.apache.hadoop.util.ShutdownHookManager$HookEntry.<init>(ShutdownHookManager.java:207)
    at org.apache.hadoop.util.ShutdownHookManager.addShutdownHook(ShutdownHookManager.java:304)
    at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:723)
    at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:707)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1754)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:640)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1004)
    at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:757)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2081)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1181)
    at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3320)
    at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3114)
    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3007)
    ... 11 more
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:304)
    at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:190)
    at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:89)
    at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:998)
    ... 17 more
2022-09-29 09:44:29,479 INFO util.ExitUtil: Exiting with status 1: java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
2022-09-29 09:44:29,492 ERROR conf.Configuration: error parsing conf core-site.xml
com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:640)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1004)
    at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:757)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2081)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1181)
    at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3320)
    at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3114)
    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3007)
    at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2968)
    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2848)
    at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
    at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
    at org.apache.hadoop.util.ShutdownHookManager.shutdownExecutor(ShutdownHookManager.java:145)
    at org.apache.hadoop.util.ShutdownHookManager.access$300(ShutdownHookManager.java:65)
    at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:102)
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:304)
    at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:190)
    at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:89)
    at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:998)
    ... 15 more
Exception in thread "Thread-1" java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3024)
    at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2968)
    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2848)
    at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
    at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
    at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
    at org.apache.hadoop.util.ShutdownHookManager.shutdownExecutor(ShutdownHookManager.java:145)
    at org.apache.hadoop.util.ShutdownHookManager.access$300(ShutdownHookManager.java:65)
    at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:102)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.sr.StreamScanner.constructFromIOE(StreamScanner.java:640)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:1004)
    at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:757)
    at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2081)
    at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1181)
    at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3320)
    at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3114)
    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3007)
    ... 9 more
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xb6 (at char #726, byte #37)
    at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:304)
    at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:190)
    at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:89)
    at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
    at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:998)
    ... 15 more

  • 写回答

0条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 系统已结题 10月7日
      • 创建了问题 9月29日

      悬赏问题

      • ¥15 笔记本电脑打游戏噪音大有什么办法可以过滤杂音
      • ¥15 deepstream加速yolov5报错
      • ¥15 用c语言编写校园出入管理系统
      • ¥15 虚幻引擎游戏崩溃问题
      • ¥15 app自动化弹窗识别
      • ¥30 使用微信Android热补丁Tinker框架在Android8.1.0系统不能加载layout资源,但values资源可以加载,使用相同的方法在Android5.1.0和Android7上可以
      • ¥15 关于Qt中COM组件向调用组件方发送消息的问题
      • ¥15 有人能帮我看一下这个码怎么解
      • ¥15 oracle更新一列的所有timestamp默认精度
      • ¥50 servicNow二次开发集成