ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13917) Allow client component information for a specific host to be queried from hooks scripts
Date Tue, 01 Dec 2015 15:52:11 GMT

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

Dmytro Sen commented on AMBARI-13917:
-------------------------------------

[~vijikarthi] ,  

why just not to add the code below to hdfs_client.py , ecs_client.py, etc ?

{code}
    Directory("/some_tmp/",
         recursive=True,
    )
    Directory("/some_home",
         recursive=True,
    )
{code}

That's what all the other stacks do.

Moreover, I think before-START hook isn't executed for the client components

> Allow client component information for a specific host to be queried from hooks scripts
> ---------------------------------------------------------------------------------------
>
>                 Key: AMBARI-13917
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13917
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>            Reporter: Vijay Srinivasaraghavan
>            Assignee: Dmytro Sen
>
> For HCFS stack, the before-START hook has a function to create /tmp and /user directory.

> {code}
> https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/shared_initialization.py#L104
> {code}
> The function needs to be invoked only when file system client component (HDFS_CLIENT,
ECS_CLIENT etc.,) is being part of the host. The command json file currently does not populate
the client component information in "clusterHostInfo" section.



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

Mime
View raw message