<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144402#M19745</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; how would oozie.launcher.mapreduce.job.hdfs-servers resolve the ${defaultFS2}.&lt;/P&gt;&lt;P&gt;From job.properties, I am passing e.g. hdfs://xyz where dfs.nameservices = xyz. This xyz is not a host name, hence getting error "Causedby: java.net.UnknownHostException: xyz" . appology for the confusion. I do have all the variables replaced in the job.properties to match the cluster. &lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 23:45:19 GMT</pubDate>
    <dc:creator>smayani</dc:creator>
    <dc:date>2016-02-19T23:45:19Z</dc:date>
    <item>
      <title>how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144400#M19743</link>
      <description>&lt;P&gt;In 2 same REALM Kerberized cluster having Namenode HA enabled, how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration.&lt;/P&gt;&lt;P&gt;Running the workflow on defaultFS1.&lt;/P&gt;&lt;P&gt;WorkFlow:&lt;/P&gt;&lt;PRE&gt;&amp;lt;workflow-app xmlns='uri:oozie:workflow:0.3' name='shell-wf'&amp;gt;
	&amp;lt;start to="copyHFilesToRemoteClusterAction"/&amp;gt; 
	&amp;lt;action name="copyHFilesToRemoteClusterAction"&amp;gt;
		&amp;lt;distcp xmlns="uri:oozie:distcp-action:0.1"&amp;gt;
			&amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
			&amp;lt;name-node&amp;gt;${defaultFS1}&amp;lt;/name-node&amp;gt;
			&amp;lt;configuration&amp;gt;
			&amp;lt;property&amp;gt;
				&amp;lt;name&amp;gt;dfs.nameservices&amp;lt;/name&amp;gt;
				&amp;lt;value&amp;gt;${nameService1},${nameService2}&amp;lt;/value&amp;gt;
			&amp;lt;/property&amp;gt;
			&amp;lt;property&amp;gt;
				&amp;lt;name&amp;gt;dfs.ha.namenodes.${nameService2}&amp;lt;/name&amp;gt;
				&amp;lt;value&amp;gt;${nn21},${nn22}&amp;lt;/value&amp;gt;
			&amp;lt;/property&amp;gt;
			&amp;lt;property&amp;gt;
				&amp;lt;name&amp;gt;dfs.namenode.rpc-address.${nameService2}.${nn21}&amp;lt;/name&amp;gt;
				&amp;lt;value&amp;gt;${nn21_fqdn}:8020&amp;lt;/value&amp;gt;
			&amp;lt;/property&amp;gt;
			&amp;lt;property&amp;gt;
				&amp;lt;name&amp;gt;dfs.namenode.rpc-address.${nameService2}.${nn22}&amp;lt;/name&amp;gt;
				&amp;lt;value&amp;gt;${nn22_fqdn}:8020&amp;lt;/value&amp;gt;
			&amp;lt;/property&amp;gt;
			&amp;lt;property&amp;gt;
				&amp;lt;name&amp;gt;dfs.client.failover.proxy.provider.${nameService2}&amp;lt;/name&amp;gt;
				&amp;lt;value&amp;gt;org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider&amp;lt;/value&amp;gt;
			&amp;lt;/property&amp;gt;
			&amp;lt;property&amp;gt;
				&amp;lt;name&amp;gt;oozie.launcher.mapreduce.job.hdfs-servers&amp;lt;/name&amp;gt;
				&amp;lt;value&amp;gt;${defaultFS1},${defaultFS2}&amp;lt;/value&amp;gt;
			&amp;lt;/property&amp;gt;
			&amp;lt;/configuration&amp;gt;
			&amp;lt;arg&amp;gt;${defaultFS1}/${workDir}&amp;lt;/arg&amp;gt;
			&amp;lt;arg&amp;gt;${defaultFS2}/${workDir}&amp;lt;/arg&amp;gt;
		&amp;lt;/distcp&amp;gt;
		&amp;lt;ok to="end"/&amp;gt;
		&amp;lt;error to="fail"/&amp;gt;
	&amp;lt;/action&amp;gt;
	&amp;lt;kill name="fail"&amp;gt;
		&amp;lt;message&amp;gt;Map/Reduce failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
	&amp;lt;/kill&amp;gt;
	&amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;
&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;PRE&gt;2016-02-16 15:37:30,276 WARN ActionStartXCommand:546 - USER[bborah1] GROUP[-] TOKEN[] APP[shell-wf] JOB[0000xyz-000000000000000-oozie-oozi-W] ACTION[0000xyz-000000000000000-oozie-oozi-W@copyHFilesToRemoteClusterAction] Error starting action [copyHFilesToRemoteClusterAction].
 ErrorType [TRANSIENT], ErrorCode [JA001], Message [JA001: ${nameservice2}]

org.apache.oozie.action.ActionExecutorException: JA001: ${nameservice2}
at org.apache.oozie.action.ActionExecutor.convertExceptionHelper(ActionExecutor.java:412)
at org.apache.oozie.action.ActionExecutor.convertException(ActionExecutor.java:392)
at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:980)
at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1135)
at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:228)
at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:63)
at org.apache.oozie.command.XCommand.call(XCommand.java:281)
at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:323)
at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:252)
at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:174)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.UnknownHostException: ${nameservice2}
at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:374)
at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:312)
at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:178)
at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:665)
at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:601)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:148)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2596)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:91)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2630)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2612)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370)
at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296)
at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:97)
at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodes(TokenCache.java:80)
at org.apache.hadoop.mapreduce.JobSubmitter.populateTokenCache(JobSubmitter.java:725)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:462)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1296)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1293)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1293)
at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:562)
at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:557)
at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:548)
at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:965)
&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:14:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144400#M19743</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2016-02-17T05:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144401#M19744</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/220/smayani.html" nodeid="220"&gt;@Saumil Mayani&lt;/A&gt; you can try to overwrite the property in workflow.XML or job.properties, it will take precedence and not affect whole Oozie server configuration.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 19:03:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144401#M19744</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-18T19:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144402#M19745</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; how would oozie.launcher.mapreduce.job.hdfs-servers resolve the ${defaultFS2}.&lt;/P&gt;&lt;P&gt;From job.properties, I am passing e.g. hdfs://xyz where dfs.nameservices = xyz. This xyz is not a host name, hence getting error "Causedby: java.net.UnknownHostException: xyz" . appology for the confusion. I do have all the variables replaced in the job.properties to match the cluster. &lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 23:45:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144402#M19745</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2016-02-19T23:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144403#M19746</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/220/smayani.html" nodeid="220"&gt;@Saumil Mayani&lt;/A&gt;&lt;P&gt;do you have defaultFS2 property set in job.properties?&lt;/P&gt;&lt;P&gt;defaultFS2=hdfs://...&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 00:00:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144403#M19746</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-20T00:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144404#M19747</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; yes,defaultFS2=hdfs://... is set in job.properties.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 01:11:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144404#M19747</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2016-02-20T01:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to resolve ${nameservice2} in oozie.launcher.mapreduce.job.hdfs-servers without changing Oozie Server configuration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144405#M19748</link>
      <description>&lt;P&gt;This can be solved by appending "oozie.launcher." to the properties.&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration&amp;gt;
	&amp;lt;property&amp;gt;
		&amp;lt;name&amp;gt;oozie.launcher.dfs.nameservices&amp;lt;/name&amp;gt;				
		&amp;lt;value&amp;gt;${nameService1},${nameService2}&amp;lt;/value&amp;gt;			
	&amp;lt;/property&amp;gt;
	&amp;lt;property&amp;gt;
		&amp;lt;name&amp;gt;oozie.launcher.dfs.ha.namenodes.${nameService2}&amp;lt;/name&amp;gt;
		&amp;lt;value&amp;gt;${nn21},${nn22}&amp;lt;/value&amp;gt;
	&amp;lt;/property&amp;gt;
	&amp;lt;property&amp;gt;
		&amp;lt;name&amp;gt;oozie.launcher.dfs.namenode.rpc-address.${nameService2}.${nn21}&amp;lt;/name&amp;gt;		
		&amp;lt;value&amp;gt;${nn21_fqdn}:8020&amp;lt;/value&amp;gt;
	&amp;lt;/property&amp;gt;
	&amp;lt;property&amp;gt;
		&amp;lt;name&amp;gt;oozie.launcher.dfs.namenode.rpc-address.${nameService2}.${nn22}&amp;lt;/name&amp;gt;
		&amp;lt;value&amp;gt;${nn22_fqdn}:8020&amp;lt;/value&amp;gt;			
	&amp;lt;/property&amp;gt;
	&amp;lt;property&amp;gt;
		&amp;lt;name&amp;gt;oozie.launcher.dfs.client.failover.proxy.provider.${nameService2}&amp;lt;/name&amp;gt;
		&amp;lt;value&amp;gt;org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider&amp;lt;/value&amp;gt;
	&amp;lt;/property&amp;gt;
	&amp;lt;property&amp;gt;
		&amp;lt;name&amp;gt;oozie.launcher.mapreduce.job.hdfs-servers&amp;lt;/name&amp;gt;
		&amp;lt;value&amp;gt;${defaultFS1},${defaultFS2}&amp;lt;/value&amp;gt;
	&amp;lt;/property&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 09:01:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-resolve-nameservice2-in-oozie-launcher-mapreduce-job/m-p/144405#M19748</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2016-04-05T09:01:56Z</dc:date>
    </item>
  </channel>
</rss>

