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

Venkatesh Seetharam commented on FALCON-819:
--------------------------------------------

on a closer look, the following methods are not needed

{code}
    public static HCatClient get(Cluster cluster) throws FalconException {
        assert cluster != null : "Cluster cant be null";

        String metastoreUrl = ClusterHelper.getInterface(cluster, 
Interfacetype.REGISTRY).getEndpoint();
        return get(metastoreUrl);
    }

    public static synchronized HCatClient get(String metastoreUrl) throws 
FalconException {
        return getHCatClient(metastoreUrl);
    }
{code}

> Submission of cluster with registry interface fails on secure setup
> -------------------------------------------------------------------
>
>                 Key: FALCON-819
>                 URL: https://issues.apache.org/jira/browse/FALCON-819
>             Project: Falcon
>          Issue Type: Bug
>    Affects Versions: 0.5, 0.6
>            Reporter: Sowmya Ramesh
>            Assignee: Sowmya Ramesh
>             Fix For: 0.6
>
>         Attachments: FALCON-819.patch
>
>
> On a secure setup cluster submission fails with "Invalid Catalog server or 
> port"
> {noformat}
> org.apache.falcon.entity.parser.ValidationException: Invalid Catalog server 
> or port: thrift://falcon-secure-sramesh-3.cs1cloud.internal:9083
>         at 
> org.apache.falcon.entity.parser.ClusterEntityParser.validateRegistryInterface(ClusterEntityParser.java:205)
>         at 
> org.apache.falcon.entity.parser.ClusterEntityParser.validate(ClusterEntityParser.java:82)
>         at 
> org.apache.falcon.entity.parser.ClusterEntityParser.validate(ClusterEntityParser.java:53)
>         at 
> org.apache.falcon.resource.AbstractEntityManager.validate(AbstractEntityManager.java:373)
>         at 
> org.apache.falcon.resource.AbstractEntityManager.submitInternal(AbstractEntityManager.java:340)
>         at 
> org.apache.falcon.resource.AbstractEntityManager.submit(AbstractEntityManager.java:156)
>         at 
> org.apache.falcon.resource.ConfigSyncService.submit(ConfigSyncService.java:44)
>         at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.java:49)
>         at 
> org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$1.doExecute(SchedulableEntityManagerProxy.java:125)
>         at 
> org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:448)
>         at 
> org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:127)
> ....
> Caused by: org.apache.falcon.FalconException: Exception checking if the 
> service is alive:org.apache.hive.hcatalog.common.HCatException : 9001 : 
> Exception occurred while processing HCat request : MetaException while 
> fetching database. Cause : 
> MetaException(message:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
>  User: hive/[email protected] is not 
> allowed to impersonate 
> falcon/[email protected])
>         at 
> org.apache.falcon.catalog.HiveCatalogService.isAlive(HiveCatalogService.java:133)
>         at 
> org.apache.falcon.entity.parser.ClusterEntityParser.validateRegistryInterface(ClusterEntityParser.java:201)
>         ... 61 more
> Caused by: org.apache.hive.hcatalog.common.HCatException : 9001 : Exception 
> occurred while processing HCat request : MetaException while fetching 
> database. Cause : 
> MetaException(message:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
>  User: hive/[email protected] is not 
> allowed to impersonate 
> falcon/[email protected])
>         at 
> org.apache.hive.hcatalog.api.HCatClientHMSImpl.getDatabase(HCatClientHMSImpl.java:85)
>         at 
> org.apache.falcon.catalog.HiveCatalogService.isAlive(HiveCatalogService.java:130)
>         ... 62 more
> Caused by: 
> MetaException(message:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
>  User: hive/[email protected] is not 
> allowed to impersonate 
> falcon/[email protected])
> {noformat}



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

Reply via email to