启动journalnode时,出错了,没用看到journalnode进程

具体的相关log信息如下
************************************************************/
2018-04-23 11:40:34,236 INFO org.apache.hadoop.hdfs.qjournal.server.JournalNode: registered UNIX signal handlers for
2018-04-23 11:40:34,439 ERROR **org.apache.hadoop.conf.Configuration: error parsing conf core-site.xml**
**com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #727, 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.loadResource(Configuration.java:2799)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2728)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2605)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1269)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1241)
at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1581)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:339)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:569)
at org.apache.hadoop.util.GenericOptionsParser.(GenericOptionsParser.java:174)
at org.apache.hadoop.util.GenericOptionsParser.(GenericOptionsParser.java:156)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.hdfs.qjournal.server.JournalNode.main(JournalNode.java:322)
Caused by: **java.io.CharConversionException: Invalid UTF-8 start byte 0xb6 (at char #727, 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)
... 16 more
2018-04-23 11:40:34,441 ERROR org.apache.hadoop.hdfs.qjournal.server.JournalNode: Failed to start journalnode.
java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #727, byte #37)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2964)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2728)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2605)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1269)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1241)
at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1581)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:339)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:569)
at org.apache.hadoop.util.GenericOptionsParser.(GenericOptionsParser.java:174)
at org.apache.hadoop.util.GenericOptionsParser.(GenericOptionsParser.java:156)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.hdfs.qjournal.server.JournalNode.main(JournalNode.java:322)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #727, 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.loadResource(Configuration.java:2799)
... 12 more
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xb6 (at char #727, 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)
... 16 more
2018-04-23 11:40:34,443 INFO org.apache.hadoop.util.ExitUtil: Exiting with status -1: java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xb6 (at char #727, byte #37)
2018-04-23 11:40:34,448 INFO org.apache.hadoop.hdfs.qjournal.server.JournalNode: SHUTDOWN_MSG: 
----------------------------------------------core-site.xml配置文件----------------------------------------------



 

 

 
  fs.defaultFS
  hdfs://ns1
 

 
  hadoop.tmp.dir
  /opt/hadoop-repo/tmp
 

 
  ha.zookeeper.quorum
  wg001:2181,wg002:2181,wg003:2181
 


-------------------------------------------------------------------------------------------------------------------
始终还是找不到解决方法,求各位大神帮忙看看
已邀请:

mopishv0 - 高级开发工程师@美团

赞同来自: 啊桂

配置文件中有非UTF8字符,有可能window下编辑(一般是gbk编码)后放到linux后导致的,重新编辑下文件,或者试试dos2unix

macg - 80后IT男

赞同来自: 啊桂

很简单的问题, xml文件解析出问题.不牵扯别的,重新生成一下core-site.xml,从别处拷一份替换,然后修改成你的配置
根据两位大佬的提示,文件已经解决了
只要是因为我使用的客户端MobaXterm自带的文本编辑器的编码问题,
用它编辑xml文件后,就出现了上述所示的问题,用了dos2unix也没用
后来我用重新解压文件后,sublime远程上去改配置文件,就不再出现这个问题了

要回复问题请先登录注册