Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9471

hadoop-client wrongfully excludes jetty-util JAR, breaking webhdfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-alpha
    • 2.0.4-alpha
    • build
    • None

    Description

      WebHdfsFileSystem uses jetty-util's JSON class.

      hadoop-client excludes that JAR, applications built using hadoop-client POM fail:

      java.lang.NoClassDefFoundError: org/mortbay/util/ajax/JSON
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.jsonParse(WebHdfsFileSystem.java:277)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$Runner.getResponse(WebHdfsFileSystem.java:561)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$Runner.run(WebHdfsFileSystem.java:480)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.run(WebHdfsFileSystem.java:413)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getHdfsFileStatus(WebHdfsFileSystem.java:580)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileStatus(WebHdfsFileSystem.java:591)
      	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1332)
      

      Attachments

        1. HADOOP-9471.patch
          0.5 kB
          Alejandro Abdelnur

        Activity

          People

            tucu00 Alejandro Abdelnur
            tucu00 Alejandro Abdelnur
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: