Posts: 8
Registered: ‎03-14-2018
Accepted Solution

Config Yarn with cluster NameNode

[ Edited ]

My system have

2 NameNode as Cluster (nn1 active, nn2 standby)

2 DataNode


1 Yarn Resource Manager service is on nn1

2 Yarn Node Manager is on 2 DataNode


Before config cluster NameNode everything work well

After config Namde Node as cluster , Yarn start ok but when submit script from Hue I have some error


2018-03-15 15:46:49,203 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService: Failed to download resource { { hdfs://mycluster/user/oozie/share/lib/lib_20171215093741/pig/jsp-2.1-6.1.14.jar, 1513305464001, FILE, null },pending,[(container_1521103549281_0001_02_000001)],8742037577451777,DOWNLOADING}
java.lang.IllegalArgumentException: mycluster
	at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(
	at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(
	at org.apache.hadoop.hdfs.DFSClient.<init>(
	at org.apache.hadoop.hdfs.DFSClient.<init>(
	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(
	at org.apache.hadoop.fs.FileSystem.createFileSystem(
	at org.apache.hadoop.fs.FileSystem.access$200(
	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(
	at org.apache.hadoop.fs.FileSystem$Cache.get(
	at org.apache.hadoop.fs.FileSystem.get(
	at org.apache.hadoop.fs.Path.getFileSystem(
	at org.apache.hadoop.yarn.util.FSDownload.copy(
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: mycluster

View log on both Yarn Node manager service I see above error .

How Can I fix this



Posts: 34
Registered: ‎03-07-2017

Re: Config Yarn with cluster NameNode

Have a look at your HDFS configuration and the name you are using for Name Node service. Confirm that you are using correct name for Name Node service. You can look at your hdfs-site.xml file on your  deployed Hue server to confirm.

Posts: 8
Registered: ‎03-14-2018

Re: Config Yarn with cluster NameNode

After check again hdfs-site.xml on 2 DataNode where Yarn Node Manager stand on , I see that the hdfs-site file missing this line when compare with the hdfs-site on Name Node



restart the Yarn Node Manager Service , It work now , Thanks you


Our community is getting a little larger. And a lot better.

Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.