hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From centerqi hu <cente...@gmail.com>
Subject java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.(I)V
Date Sat, 27 Oct 2012 04:40:51 GMT
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

Mime
View raw message