Home > other >  Nodemanager and resourceManager log an error
Nodemanager and resourceManager log an error

Time:12-01

The resourceManager error
Error starting the ResourceManager
Org, apache hadoop. Yarn. Webapp. WebAppException: Error starting the HTTP server
At org, apache hadoop. Yarn. Webapp. WebApps $Builder. Start (WebApps. Java: 411)
At org, apache hadoop. Yarn. Server. The resourcemanager. The resourcemanager. StartWepApp (1119) the resourcemanager. Java:
At org, apache hadoop. Yarn. Server. The resourcemanager. The resourcemanager. ServiceStart (1229) the resourcemanager. Java:
At org, apache hadoop. Service. AbstractService. Start (AbstractService. Java: 194)
At org, apache hadoop. Yarn. Server. The resourcemanager. The resourcemanager. Main (1425) the resourcemanager. Java:
Under Caused by: Java. IO. IOException: Unable to initialize WebAppContext
At org, apache hadoop. HTTP. HttpServer2. Start (HttpServer2. Java: 1092)
At org, apache hadoop. Yarn. Webapp. WebApps $Builder. Start (WebApps. Java: 407)
. 4 more
Under Caused by: com. Google. Inject. ProvisionException: Unable to provision, see the following errors:

1) the Error injecting constructor, Java. Lang. NoClassDefFoundError: javax.mail/activation/DataSource
At org, apache hadoop. Yarn. Server. The resourcemanager. Webapp. JAXBContextResolver. & lt; init> (JAXBContextResolver. Java: 41)
At org, apache hadoop. Yarn. Server. The resourcemanager. Webapp. RMWebApp. Setup (RMWebApp. Java: 50)
While locating org, apache hadoop. Yarn. Server. The resourcemanager. Webapp. JAXBContextResolver

1 error

Nodemanage error

Error starting NodeManager
Org, apache hadoop. Yarn. Exceptions. YarnRuntimeException: NMWebapps failed to start.
At org, apache hadoop. Yarn. Server. The nodemanager. Webapp. WebServer. ServiceStart (WebServer. Java: 117)
At org, apache hadoop. Service. AbstractService. Start (AbstractService. Java: 194)
At org.apache.hadoop.service.Com positeService. ServiceStart (CompositeService. Java: 121)
At org, apache hadoop. Yarn. Server. The nodemanager. Nodemanager. ServiceStart (nodemanager. Java: 451)
At org, apache hadoop. Service. AbstractService. Start (AbstractService. Java: 194)
At org, apache hadoop. Yarn. Server. The nodemanager. Nodemanager. InitAndStartNodeManager (nodemanager. Java: 834)
At org, apache hadoop. Yarn. Server. The nodemanager. Nodemanager. Main (894) nodemanager. Java:
Under Caused by: org, apache hadoop. Yarn. The webapp. WebAppException: Error starting the HTTP server
At org, apache hadoop. Yarn. Webapp. WebApps $Builder. Start (WebApps. Java: 411)
At org, apache hadoop. Yarn. Webapp. WebApps $Builder. Start (WebApps. Java: 397)
At org, apache hadoop. Yarn. Server. The nodemanager. Webapp. WebServer. ServiceStart (WebServer. Java: 112)
. Six more
Under Caused by: Java. IO. IOException: Unable to initialize WebAppContext
At org, apache hadoop. HTTP. HttpServer2. Start (HttpServer2. Java: 1092)
At org, apache hadoop. Yarn. Webapp. WebApps $Builder. Start (WebApps. Java: 407)
. Eight more
Under Caused by: com. Google. Inject. ProvisionException: Unable to provision, see the following errors:

1) the Error injecting constructor, Java. Lang. NoClassDefFoundError: javax.mail/activation/DataSource
At org, apache hadoop. Yarn. Server. The nodemanager. Webapp. JAXBContextResolver. & lt; init> (JAXBContextResolver. Java: 52)
At org, apache hadoop. Yarn. Server. The nodemanager. Webapp. WebServer $NMWebApp. Setup (WebServer. Java: 153)
While locating org, apache hadoop. Yarn. Server. The nodemanager. Webapp. JAXBContextResolver

1 error
At com. Google. Inject. Internal. InjectorImpl $2. Get (1025) InjectorImpl. Java:
At com. Google. Inject. Internal. InjectorImpl. GetInstance (InjectorImpl. Java: 1051)
At com. Sun. Jersey. Guice. Spi. Container. GuiceComponentProviderFactory $GuiceInstantiatedComponentProvider. GetInstance (GuiceComponentProviderFactory. Java: 345)
At com.sun.jersey.core.spi.com ponent. Ioc. IoCProviderFactory $ManagedSingleton. & lt; init> (IoCProviderFactory. Java: 202)
At com.sun.jersey.core.spi.com ponent. Ioc. IoCProviderFactory. Wrap (IoCProviderFactory. Java: 123)
At com.sun.jersey.core.spi.com ponent. Ioc. IoCProviderFactory. _getComponentProvider (IoCProviderFactory. Java: 116)
At com.sun.jersey.core.spi.com ponent. ProviderFactory. GetComponentProvider (ProviderFactory. Java: 153)
At com.sun.jersey.core.spi.com ponent. ProviderServices. GetComponent (ProviderServices. Java: 278)
At com.sun.jersey.core.spi.com ponent. ProviderServices. GetProviders (Provi

For years, to save

CodePudding user response:

Did you use jdk9, java9 is disabled by default access many javax.mail. * apis, replace jdk8 can,
There is a solution https://issues.apache.org/jira/browse/HADOOP-14978 ,
Modify the $HADOOP_HOME/etc/hadoop/yarn - env. Sh
Export YARN_RESOURCEMANAGER_OPTS="-- add - modules=ALL - SYSTEM"
Export YARN_NODEMANAGER_OPTS="-- add - modules=ALL - SYSTEM"

CodePudding user response:

I also encountered this problem: when the JPS nodemanager process is not running, in accordance with the method of 1/f, successfully solved

CodePudding user response:

Can consult this article see
https://blog.csdn.net/tjcyjd/article/details/105631639

CodePudding user response:

1/what is method
  • Related