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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.0.4-alpha
    • Component/s: build
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: