首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

hadoop :java.lang.UnsupportedOperationException: This parser does not support.

2012-12-24 
hadoop:java.lang.UnsupportedOperationException: This parser does not support..昨天,集群hadoop clust

hadoop :java.lang.UnsupportedOperationException: This parser does not support..
昨天,集群hadoop cluster跑刚刚做好的代码没有问题,而本机调试的时候出现下面的Exception:

org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@1a42792:java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"    at javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:590)    at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1054)    at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1030)    at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:980)    at org.apache.hadoop.conf.Configuration.set(Configuration.java:405)    at org.apache.hadoop.hdfs.server.namenode.NameNode.setStartupOption(NameNode.java:927)    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:944)    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:965)


产生原因:xerces.jar or xercesImpl.jar的版本不兼容导致引发Application冲突.
解决办法:将classpath中的xerces.jar or xercesImpl.jar remove.

热点排行