[ https://issues.apache.org/jira/browse/AMBARI-17067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Srimanth Gunturi updated AMBARI-17067: -------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Committed to trunk and branch-2.4 > Microsoft-r install script should use Ambari libraries instead of direct > shell calls > ------------------------------------------------------------------------------------ > > Key: AMBARI-17067 > URL: https://issues.apache.org/jira/browse/AMBARI-17067 > Project: Ambari > Issue Type: Task > Components: contrib > Affects Versions: 2.4.0 > Reporter: Balázs Bence Sári > Assignee: Balázs Bence Sári > Priority: Critical > Fix For: 2.4.1 > > Attachments: diff1-trunk.patch > > > In the install script of the management-pack we do everything using shell > calls. Instead we should use Ambari's python libraries. > Example: > {code}shell.call('sudo -u hdfs hadoop fs -mkdir -p /share'){code} > As reference you can use the scripts of HDFS: > [https://github.com/apache/ambari/tree/trunk/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts] > which make good use of Ambari libraries. Microsoft-R scripts should use just > like these. -- This message was sent by Atlassian JIRA (v6.3.4#6332)