我刚刚安装了jobtracker和任务跟踪器,但是一旦我启动了任何任务工具 工作跟踪器主页给出以下错误:
java.lang.NoSuchMethodError: sun.misc.FloatingDecimal.digitsRoundedUp()Z
at java.text.DigitList.set(DigitList.java:292)
at java.text.DecimalFormat.format(DecimalFormat.java:599)
at java.text.DecimalFormat.format(DecimalFormat.java:522)
at java.text.NumberFormat.format(NumberFormat.java:271)
at org.apache.hadoop.mapred.jobtracker_jsp.generateSummaryTable(jobtracker_jsp.java:26)
at org.apache.hadoop.mapred.jobtracker_jsp._jspService(jobtracker_jsp.java:146)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
at org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter.doFilter(StaticUserWebFilter.java:109)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(HttpServer.java:1069)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
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:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
而在jobtracker :: 50030 / machines.jsp?type = active中,所有tasktrackers都处于运行状态。
Hadoop版本: Hadoop 2.0.0-cdh4.6.0和 java版本:" 1.7.0_55"
我的jobtracker / tasktracker一切正常,但我无法访问jobtracker的网页主页。同样在hbase中我在每次命令运行时都会遇到此异常,但是hbase工作正常。
HBase的(主):003:0>名单
表
T1
Java :: JavaLang :: NoSuchMethodError:sun.misc.FloatingDecimal.digitsRoundedUp()Z
请给我任何建议。
答案 0 :(得分:0)
修复此问题实际上安装java时我从maven repository手动下载了floatingdecimal.jar ,这导致了问题。删除jar后不仅解决了jobtracker问题,而且还删除了hbase异常。