java.lang.ClassCastException: org.apache.hadoop.fs.ChecksumFileSystem$FSDataBoundedInputStream cannot be cast to org.apache.hadoop.hdfs.client.HdfsDataInputStream

Stack Overflow | amritkrs | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    TestWriteRead in HDFS Codebase is giving error on runnning

    Stack Overflow | 10 months ago | amritkrs
    java.lang.ClassCastException: org.apache.hadoop.fs.ChecksumFileSystem$FSDataBoundedInputStream cannot be cast to org.apache.hadoop.hdfs.client.HdfsDataInputStream

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.hadoop.fs.ChecksumFileSystem$FSDataBoundedInputStream cannot be cast to org.apache.hadoop.hdfs.client.HdfsDataInputStream

      at org.apache.hadoop.hdfs.TestWriteRead.readData()
    2. Apache Hadoop HDFS
      TestWriteRead.main
      1. org.apache.hadoop.hdfs.TestWriteRead.readData(TestWriteRead.java:159)
      2. org.apache.hadoop.hdfs.TestWriteRead.testWriteAndRead(TestWriteRead.java:340)
      3. org.apache.hadoop.hdfs.TestWriteRead.clusterTestWriteRead1(TestWriteRead.java:141)
      4. org.apache.hadoop.hdfs.TestWriteRead.main(TestWriteRead.java:498)
      4 frames