问答专栏Q & A COLUMN

USDP2.X社区版sqoop任务会调用TEZ并报无法初始化错误,有遇到过的么?

peihengpeiheng 回答0 收藏3
问题描述:

2022-10-21 17:26:57`SEVERE`io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector`io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector collect`JMX scrape failed: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory]

        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369)

        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)

        at io.prometheus.jmx.shaded.io.prometheus.jmx.JmxScraper.doScrape(JmxScraper.java:94)

        at io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector.collect(JmxCollector.java:473)

        at io.prometheus.jmx.shaded.io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.findNextElement(CollectorRegistry.java:190)

        at io.prometheus.jmx.shaded.io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:223)

        at io.prometheus.jmx.shaded.io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:144)

        at io.prometheus.jmx.shaded.io.prometheus.client.exporter.common.TextFormat.write004(TextFormat.java:22)

        at io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer$HTTPMetricHandler.handle(HTTPServer.java:68)

        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)

        at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)

        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)

        at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)

        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)

        at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory]

        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)

        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)

        at javax.naming.InitialContext.init(InitialContext.java:244)

        at javax.naming.InitialContext.<init>(InitialContext.java:216)

        at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1953)

        at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1922)

        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287)

        ... 17 more

Caused by: java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory

        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:348)

        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:91)

        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)


收藏问题
温馨提示
该问题目前已经被作者或者管理员关闭, 无法添加新回复

0条回答

最新活动

您已邀请0人回答 查看邀请

我的邀请列表

  • 擅长该话题
  • 回答过该话题
  • 我关注的人
向帮助了您的网友说句感谢的话吧!
付费偷看金额在0.1-10元之间
<