You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2013/04/11 00:49:18 UTC

[jira] [Created] (HADOOP-9471) hadoop-client wrongfully excludes jetty-util JAR, breaking webhdfs

Alejandro Abdelnur created HADOOP-9471:
------------------------------------------

             Summary: hadoop-client wrongfully excludes jetty-util JAR, breaking webhdfs
                 Key: HADOOP-9471
                 URL: https://issues.apache.org/jira/browse/HADOOP-9471
             Project: Hadoop Common
          Issue Type: Bug
          Components: build
    Affects Versions: 2.0.3-alpha
            Reporter: Alejandro Abdelnur
            Assignee: Alejandro Abdelnur
             Fix For: 2.0.4-alpha


WebHdfsFileSystem uses jetty-util's JSON class.

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

{code}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)
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira