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

Stack Overflow | amritkrs | 8 months 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

    TestWriteRead in HDFS Codebase is giving error on runnning

    Stack Overflow | 8 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