You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmytro Sen (JIRA)" <ji...@apache.org> on 2015/12/01 16:52:11 UTC
[jira] [Commented] (AMBARI-13917) Allow client component
information for a specific host to be queried from hooks scripts
[ 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)