falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaehong Choi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1312) Falcon post processing action should use Oozie prepared configuration
Date Fri, 28 Aug 2015 17:03:47 GMT

    [ https://issues.apache.org/jira/browse/FALCON-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720241#comment-14720241
] 

Jaehong Choi commented on FALCON-1312:
--------------------------------------

Thank [~venkatnrangan] for your reply.
Does it work for the remote NN-HA address also?
This looks a diffrent issue from the one here like you said.

I configured oozie.service.HadoopAccessorService.hadoop.configurations in order to submit
a cluster entity with a remote NN-HA address like 'nameservice' below. But, it does not seem
to work. 
{code}
*=/etc/hadoop/conf,nameservice1:50070=/etc/oozie/conf/drcluster-conf,nameservice1:8020=/etc/oozie/conf/drcluster-conf
{code}

{code}
java.lang.IllegalArgumentException: java.net.UnknownHostException: nameservice1
        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.<init>(DFSClient.java:665)
        at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:601)
        at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:148)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2619)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:91)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2653)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2635)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370)
        at org.apache.falcon.hadoop.HadoopClientFactory.createFileSystem(HadoopClientFactory.java:194)
        at org.apache.falcon.hadoop.HadoopClientFactory.createProxiedFileSystem(HadoopClientFactory.java:153)
        at org.apache.falcon.hadoop.HadoopClientFactory.createProxiedFileSystem(HadoopClientFactory.java:127)
        at org.apache.falcon.entity.parser.ClusterEntityParser.validateFileSystem(ClusterEntityParser.java:126)
        at org.apache.falcon.entity.parser.ClusterEntityParser.validateWriteInterface(ClusterEntityParser.java:109)
        at org.apache.falcon.entity.parser.ClusterEntityParser.validate(ClusterEntityParser.java:80)
        at org.apache.falcon.entity.parser.ClusterEntityParser.validate(ClusterEntityParser.java:53)
        at org.apache.falcon.resource.AbstractEntityManager.validate(AbstractEntityManager.java:433)
        at org.apache.falcon.resource.AbstractEntityManager.submitInternal(AbstractEntityManager.java:346)
        at org.apache.falcon.resource.AbstractEntityManager.submit(AbstractEntityManager.java:157)
        at org.apache.falcon.resource.ConfigSyncService.submit(ConfigSyncService.java:44)
        at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.java:49)
        at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$1.doExecute(SchedulableEntityManagerProxy.java:124)
        at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:447)
        at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:126)
        at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure1.run(SchedulableEntityManagerProxy.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.apache.falcon.aspect.AbstractFalconAspect.logAroundMonitored(AbstractFalconAspect.java:51)
        at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit(SchedulableEntityManagerProxy.java:107)
        at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
{code}

> Falcon post processing action should use Oozie prepared configuration
> ---------------------------------------------------------------------
>
>                 Key: FALCON-1312
>                 URL: https://issues.apache.org/jira/browse/FALCON-1312
>             Project: Falcon
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 0.6, 0.6.1
>            Reporter: Venkat Ranganathan
>            Assignee: Venkat Ranganathan
>         Attachments: FALCON-1312.patch, FALCON-1312.patch.2
>
>
> Without this, in an environment with NN-HA or security setup, the postprocessing action
will fail accdssing the filesystem 
> {quote}
> Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.JavaMain], main()
threw exception, java.lang.IllegalArgumentException: java.net.UnknownHostException: nameservice
> org.apache.oozie.action.hadoop.JavaMainException: java.lang.IllegalArgumentException:
java.net.UnknownHostException: nameservice
> 	at org.apache.oozie.action.hadoop.JavaMain.run(JavaMain.java:59)
> 	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:47)
> 	at org.apache.oozie.action.hadoop.JavaMain.main(JavaMain.java:35)
> 	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.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:236)
> 	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
> 	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
> 	at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
> 	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:1657)
> 	at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
> Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: nameservice
> 	at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:377)
> 	at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:310)
> 	at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
> 	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:678)
> 	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
> 	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
> 	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
> 	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
> 	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
> 	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
> 	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
> 	at org.apache.falcon.hadoop.HadoopClientFactory$1.run(HadoopClientFactory.java:200)
> 	at org.apache.falcon.hadoop.HadoopClientFactory$1.run(HadoopClientFactory.java:198)
> 	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:1657)
> 	at org.apache.falcon.hadoop.HadoopClientFactory.createFileSystem(HadoopClientFactory.java:198)
> 	at org.apache.falcon.hadoop.HadoopClientFactory.createProxiedFileSystem(HadoopClientFactory.java:153)
> 	at org.apache.falcon.hadoop.HadoopClientFactory.createProxiedFileSystem(HadoopClientFactory.java:145)
> 	at org.apache.falcon.workflow.WorkflowExecutionContext.serialize(WorkflowExecutionContext.java:313)
> 	at org.apache.falcon.workflow.WorkflowExecutionContext.serialize(WorkflowExecutionContext.java:299)
> 	at org.apache.falcon.workflow.FalconPostProcessing.run(FalconPostProcessing.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.falcon.workflow.FalconPostProcessing.main(FalconPostProcessing.java:39)
> 	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.oozie.action.hadoop.JavaMain.run(JavaMain.java:56)
> 	... 15 more
> Caused by: java.net.UnknownHostException: nameservice
> 	... 44 more
> {quote}
> In the above stack trace it is clear that we are using non-HA proxy because the configuration
used does not have the HA information 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message