2013年8月5日星期一

About the HDFS JAVA api and Failed to set setXIncludeAware (true)for parser issue

HDFS ask the api is less so with you?
org.apache.hadoop.conf.Configuration conf = new org.apache.hadoop.conf.Configuration ();
fs = FileSystem.get (URI.create ("String"), conf);

I can read and write but a few times before running back again when it emerged the following error
Jiqiu answer! !


13/04/17 03:26:36 ERROR conf.Configuration: Failed to set setXIncludeAware (true) for parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl @ 17aea99: java.lang.UnsupportedOperationException: setXIncludeAware is not supported on this JAXP implementation or earlier: class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
java.lang.UnsupportedOperationException: setXIncludeAware is not supported on this JAXP implementation or earlier: class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
at javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware (Unknown Source)
at org.apache.hadoop.conf.Configuration.loadResource (Configuration.java: 1135)
at org.apache.hadoop.conf.Configuration.loadResources (Configuration.java: 1111)
at org.apache.hadoop.conf.Configuration.getProps (Configuration.java: 1055)
at org.apache.hadoop.conf.Configuration.set (Configuration.java: 431)
at org.apache.hadoop.conf.Configuration.setBoolean (Configuration.java: 611)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions (GenericOptionsParser.java: 303)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions (GenericOptionsParser.java: 413)
at org.apache.hadoop.util.GenericOptionsParser. (GenericOptionsParser.java: 164)
at org.apache.hadoop.util.GenericOptionsParser. (GenericOptionsParser.java: 147)
at org.apache.hadoop.util.ToolRunner.run (ToolRunner.java: 59)
at org.apache.hadoop.util.ToolRunner.run (ToolRunner.java: 79)
at org.owen.hadoop.web.log.analyze.Main $ 1.actionPerformed (Main.java: 40)
------ Solution ----------- ---------------------------------
this error is not procedural questions, jar package conflict. . . Look at your project there are no xerces.jar xercesImpl.jar should be some, these two jar package can be deleted, but although the conflict without affecting the program should be run, right? I checked hbase also encountered, although error but check up is no problem
------ For reference only --------------------- ------------------


But some say the Internet is the lack of these two packages to add these two packages, oh?
I deleted re-try first.
------ For reference only -------------------------------------- -

checked after the original really is more than one package, is a program developed by others plus the jar package, conflict. Very grateful!

没有评论:

发表评论