Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9886

hadoop fs -checksum fails with NoClassDefFoundError: CompositeCrcFileChecksum on Hadoop 2

    XMLWordPrintableJSON

Details

    Description

      $ hadoop version
      Hadoop 2.10.2
      ...
      
      $ hadoop fs -checksum ofs://om/volume1/bucket1/ozone-21331
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/fs/CompositeCrcFileChecksum
      	at org.apache.hadoop.ozone.client.checksum.ChecksumHelperFactory.getChecksumHelper(ChecksumHelperFactory.java:48)
      	at org.apache.hadoop.fs.ozone.OzoneClientUtils.getFileChecksumWithCombineMode(OzoneClientUtils.java:239)
      	at org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.getFileChecksum(BasicRootedOzoneClientAdapterImpl.java:1292)
      	at org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.getFileChecksum(BasicRootedOzoneFileSystem.java:1090)
      	at org.apache.hadoop.fs.FileSystem.getFileChecksum(FileSystem.java:2666)
      	at org.apache.hadoop.fs.shell.Display$Checksum.processPath(Display.java:199)
      	at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:327)
      	at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:299)
      	at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:281)
      	at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:265)
      	at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:119)
      	at org.apache.hadoop.fs.shell.Command.run(Command.java:175)
      	at org.apache.hadoop.fs.FsShell.run(FsShell.java:317)
      	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.FsShell.main(FsShell.java:380)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.fs.CompositeCrcFileChecksum
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 16 more
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: