[
https://issues.apache.org/jira/browse/AMBARI-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140569#comment-13140569
]
Devaraj Das commented on AMBARI-119:
------------------------------------
BTW I just committed a change where the controller sets the workDir component
in the Actions. I added a field workDirComponent to the Action class.
Before running any action, the working directory should be set to
<ambari-prefix>/workDirComponent. The install/createDirStructure should also
use this as the destination directory.
> Add database to map cluster-role to current working directory
> -------------------------------------------------------------
>
> Key: AMBARI-119
> URL: https://issues.apache.org/jira/browse/AMBARI-119
> Project: Ambari
> Issue Type: New Feature
> Components: agent
> Affects Versions: 0.1.0
> Environment: Python
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.1.0
>
>
> Proposed directory structure layout:
> {noformat}
> $prefix/$cluster-$role/stacks
> /config
> /logs/
> /data/disk-*/
> /pkgs/hadoop-*.tar.gz
> /config/hadoop/core-site.xml
> {noformat}
> One optimization that Owen proposed is to make the directory structure
> shorter for client.
> {noformat}
> $prefix/$cwd/stacks
> /config
> /logs
> /data/disk-*/
> /pkgs/hadoop-*.tar.gz
> /config/hadoop/core-site.xml
> {noformat}
> Action send by controller will contain "current working directory", which
> agent will record the cluster and role mapping to current working directory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira