vincent he created MAPREDUCE-6879:
-------------------------------------

             Summary: TestDFSIO#sequentialTest throws 
java.lang.NullPointerException due to uninitialized IOStream
                 Key: MAPREDUCE-6879
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6879
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: benchmarks
    Affects Versions: 3.0.0-alpha2
            Reporter: vincent he
            Priority: Minor


When I use {color:red} -seq {color} arg to write files, 
TestDFSIO#sequentialTest throws java.lang.NullPointerException due to 
uninitialized stream inherited from IOMapperBase:

{code}
[root@7b65290f2609 hadoop-3.0.0-alpha3-SNAPSHOT]# bin/hadoop jar 
share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.0.0-alpha3-SNAPSHOT-tests.jar
 TestDFSIO -seq -write
2017-04-20 15:50:43,505 INFO fs.TestDFSIO: TestDFSIO.1.8
2017-04-20 15:50:43,510 INFO fs.TestDFSIO: nrFiles = 1
2017-04-20 15:50:43,510 INFO fs.TestDFSIO: nrBytes (MB) = 1.0
2017-04-20 15:50:43,510 INFO fs.TestDFSIO: bufferSize = 1000000
2017-04-20 15:50:43,510 INFO fs.TestDFSIO: baseDir = /benchmarks/TestDFSIO
2017-04-20 15:50:43,655 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
java.lang.NullPointerException
        at org.apache.hadoop.fs.TestDFSIO$WriteMapper.doIO(TestDFSIO.java:427)
        at org.apache.hadoop.fs.TestDFSIO$WriteMapper.doIO(TestDFSIO.java:395)
        at org.apache.hadoop.fs.TestDFSIO.sequentialTest(TestDFSIO.java:722)
        at org.apache.hadoop.fs.TestDFSIO.run(TestDFSIO.java:846)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
        at org.apache.hadoop.fs.TestDFSIO.main(TestDFSIO.java:731)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
        at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
        at 
org.apache.hadoop.test.MapredTestDriver.run(MapredTestDriver.java:136)
        at 
org.apache.hadoop.test.MapredTestDriver.main(MapredTestDriver.java:144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:239)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:153)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: mapreduce-dev-h...@hadoop.apache.org

Reply via email to