Reply
Highlighted
bvk
Explorer
Posts: 17
Registered: ‎08-25-2017
Accepted Solution

NFS Gateway failed to start Caused by: java.lang.UnsatisfiedLinkError: no management in java.library

Hi,

 

I am using CDH 5.10.2. In one of my hadoop machines, even after starting rpcbind, I am not able to start NFS Gateway service

 

When checked nfs3_jsvc.err: getting below error, what could be the reason, how do i resolve it?

 

 

Cannot start daemon
Service exit with a return value of 5
Initializing privileged NFS client socket...
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
Caused by: java.lang.UnsatisfiedLinkError: no management in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at sun.management.ManagementFactoryHelper.<clinit>(ManagementFactoryHelper.java:425)
at java.lang.management.ManagementFactory.getThreadMXBean(ManagementFactory.java:336)
at org.apache.hadoop.util.ReflectionUtils.<clinit>(ReflectionUtils.java:137)
at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.initRegistry(MetricsSourceBuilder.java:92)
at org.apache.hadoop.metrics2.lib.MetricsSourceBuilder.<init>(MetricsSourceBuilder.java:56)
at org.apache.hadoop.metrics2.lib.MetricsAnnotations.makeSource(MetricsAnnotations.java:37)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.registerSystemSource(MetricsSystemImpl.java:558)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configureSources(MetricsSystemImpl.java:536)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.configure(MetricsSystemImpl.java:482)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.start(MetricsSystemImpl.java:188)
at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.init(MetricsSystemImpl.java:163)
at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.init(DefaultMetricsSystem.java:54)
at org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.initialize(DefaultMetricsSystem.java:50)
at org.apache.hadoop.hdfs.nfs.nfs3.RpcProgramNfs3.createRpcProgramNfs3(RpcProgramNfs3.java:219)
at org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.<init>(Nfs3.java:45)
at org.apache.hadoop.hdfs.nfs.nfs3.Nfs3.startService(Nfs3.java:67)
at org.apache.hadoop.hdfs.nfs.nfs3.PrivilegedNfsGatewayStarter.start(PrivilegedNfsGatewayStarter.java:60)
... 5 more

Posts: 1,760
Kudos: 379
Solutions: 282
Registered: ‎07-31-2013

Re: NFS Gateway failed to start Caused by: java.lang.UnsatisfiedLinkError: no management in java.lib

What version(s) of JDK/JRE are installed on the host that runs your NFS Gateway? Is it consistent with the other hosts?

CDH/CM requires recent version(s) of Oracle JDK version 1.7 or version 1.8 to run: https://www.cloudera.com/documentation/enterprise/release-notes/topics/rn_consolidated_pcm.html#pcm_... and it is recommended to not keep multiple different version(s) of Java JRE/JDK installed.
Announcements