hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.(I)V
Date Sat, 27 Oct 2012 16:13:43 GMT
Hi,

What version/release/distro of Hadoop is this from, 2.x? You need the
commons-codec-1.4.jar on your HDFS classpath.

Normally, this is available at $HADOOP_PREFIX/lib (1.x based releases)
or in $HADOOP_PREFIX/share/hadoop/common/lib/ (2.x based releases).

On Sat, Oct 27, 2012 at 10:10 AM, centerqi hu <centerqi@gmail.com> wrote:
> hi all
> when I access hdfs by webhdfs
> curl -i
> "http://xx.xxx.xxx.xxx:50070/webhdfs/v1/usr/local/hadoop/log-analyze/tmp/input/prom/?op=GETFILESTATUS&user.name=hadoop"
> Someone encountered the same problem?
>
> The following error occurred
>
> org.apache.commons.codec.binary.Base64.<init>(I)V
>
> RequestURI=/webhdfs/v1/usr/local/hadoop/log-analyze/tmp/input/prom/
>
> Caused by:
>
> java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.(I)V
> 	at
> org.apache.hadoop.security.authentication.util.Signer.computeSignature(Signer.java:94)
> 	at
> org.apache.hadoop.security.authentication.util.Signer.sign(Signer.java:54)
> 	at
> org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:368)
> 	at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
> 	at
> org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(HttpServer.java:835)
> 	at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
> 	at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:324)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> 	at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> 	at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> 	at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>
>
> --
> centerqi@gmail.com|Sam



-- 
Harsh J

Mime
View raw message