java.lang.NullPointerException

JIRA | David Capwell | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This logic is fixed in https://github.com/amplab/tachyon/pull/427, but as of master right now, MR doesn't seem to work with Tachyon {code} Error: java.lang.NullPointerException at tachyon.client.FileOutStream.write(FileOutStream.java:213) at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOutputStream.java:50) at java.io.DataOutputStream.writeByte(DataOutputStream.java:153) at org.apache.hadoop.io.WritableUtils.writeVLong(WritableUtils.java:273) at org.apache.hadoop.io.WritableUtils.writeVInt(WritableUtils.java:253) at org.apache.hadoop.io.Text.writeString(Text.java:475) at org.apache.hadoop.io.SequenceFile$Writer.writeFileHeader(SequenceFile.java:1146) at org.apache.hadoop.io.SequenceFile$Writer.init(SequenceFile.java:1214) at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:1091) at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:270) at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:527) at org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getSequenceWriter(SequenceFileOutputFormat.java:64) at org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getRecordWriter(SequenceFileOutputFormat.java:75) at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:624) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:744) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1556) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162) {code} Setup {code} # on all nodes cp /opt/tachyon/tachyon-0.6.0-SNAPSHOT/client/target/tachyon-client-0.6.0-SNAPSHOT-jar-with-dependencies.jar /usr/lib/hadoop/lib/ hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar randomtextwriter tachyon://rhel65-1.localdomain:19998/randomInput {code}

    JIRA | 2 years ago | David Capwell
    java.lang.NullPointerException
  2. 0

    This logic is fixed in https://github.com/amplab/tachyon/pull/427, but as of master right now, MR doesn't seem to work with Tachyon {code} Error: java.lang.NullPointerException at tachyon.client.FileOutStream.write(FileOutStream.java:213) at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOutputStream.java:50) at java.io.DataOutputStream.writeByte(DataOutputStream.java:153) at org.apache.hadoop.io.WritableUtils.writeVLong(WritableUtils.java:273) at org.apache.hadoop.io.WritableUtils.writeVInt(WritableUtils.java:253) at org.apache.hadoop.io.Text.writeString(Text.java:475) at org.apache.hadoop.io.SequenceFile$Writer.writeFileHeader(SequenceFile.java:1146) at org.apache.hadoop.io.SequenceFile$Writer.init(SequenceFile.java:1214) at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:1091) at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:270) at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:527) at org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getSequenceWriter(SequenceFileOutputFormat.java:64) at org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getRecordWriter(SequenceFileOutputFormat.java:75) at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:624) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:744) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1556) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162) {code} Setup {code} # on all nodes cp /opt/tachyon/tachyon-0.6.0-SNAPSHOT/client/target/tachyon-client-0.6.0-SNAPSHOT-jar-with-dependencies.jar /usr/lib/hadoop/lib/ hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar randomtextwriter tachyon://rhel65-1.localdomain:19998/randomInput {code}

    JIRA | 2 years ago | David Capwell
    java.lang.NullPointerException
  3. 0

    N00b question about TRY_CACHE and memory use

    Google Groups | 2 years ago | max
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at tachyon.client.FileOutStream.write()
    2. Tachyon Project Core
      FileOutStream.write
      1. tachyon.client.FileOutStream.write(FileOutStream.java:213)
      1 frame
    3. Hadoop
      FSDataOutputStream$PositionCache.write
      1. org.apache.hadoop.fs.FSDataOutputStream$PositionCache.write(FSDataOutputStream.java:50)
      1 frame
    4. Java RT
      DataOutputStream.writeByte
      1. java.io.DataOutputStream.writeByte(DataOutputStream.java:153)
      1 frame
    5. Hadoop
      SequenceFile.createWriter
      1. org.apache.hadoop.io.WritableUtils.writeVLong(WritableUtils.java:273)
      2. org.apache.hadoop.io.WritableUtils.writeVInt(WritableUtils.java:253)
      3. org.apache.hadoop.io.Text.writeString(Text.java:475)
      4. org.apache.hadoop.io.SequenceFile$Writer.writeFileHeader(SequenceFile.java:1146)
      5. org.apache.hadoop.io.SequenceFile$Writer.init(SequenceFile.java:1214)
      6. org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:1091)
      7. org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:270)
      8. org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:527)
      8 frames
    6. Hadoop
      YarnChild$2.run
      1. org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getSequenceWriter(SequenceFileOutputFormat.java:64)
      2. org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat.getRecordWriter(SequenceFileOutputFormat.java:75)
      3. org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.<init>(MapTask.java:624)
      4. org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:744)
      5. org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)
      6. org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
      6 frames
    7. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:415)
      2 frames
    8. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1556)
      1 frame
    9. Hadoop
      YarnChild.main
      1. org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
      1 frame