You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Bhallamudi kamesh <bh...@huawei.com> on 2011/02/02 07:13:30 UTC

HDFS test cases are failing in my env. Help me to fix

Hi All,
 I have been trying to execute HDFS Trunk test cases in Linux environment (Open Suse), but I am getting the following exception

2011-02-01 04:46:57,091 ERROR conf.Configuration (Configuration.java:loadResource(1437)) - Failed to set setXIncludeAware(true) for parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@26e26f: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:1435)
       at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1411)
       at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1357)
       at org.apache.hadoop.conf.Configuration.set(Configuration.java:600)
       at org.apache.hadoop.fs.FileSystem.setDefaultUri(FileSystem.java:162)
       at org.apache.hadoop.fs.FileSystem.setDefaultUri(FileSystem.java:170)
       at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:267)
       at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:415)
       at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:168)
       at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:151)
       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:63)
       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:83)
       at org.apache.hadoop.cli.util.CLICommands$FSCmdExecutor.execute(CLICommands.java:36)
       at org.apache.hadoop.cli.util.CommandExecutor.executeCommand(CommandExecutor.java:67)
       at org.apache.hadoop.cli.TestHDFSCLI.execute(TestHDFSCLI.java:94)
       at org.apache.hadoop.cli.CLITestHelper.testAll(CLITestHelper.java:313)
       at org.apache.hadoop.cli.TestHDFSCLI.testAll(TestHDFSCLI.java:100)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
       at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
       at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
       at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
       at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
       at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
       at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
       at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
       at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
       at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
       at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)

Most of the test cases are failing because of the above exception only.

While executing the test cases I am passing the following parameter to the Ant
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl

Can any one help me out in fixing the test cases.

Thanks in advance.

Thanks&Regards,
Bh.V.S.Kamesh.