-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/50087/#review142579
-----------------------------------------------------------




ambari-server/src/main/resources/scripts/add_common_service.py (line 516)
<https://reviews.apache.org/r/50087/#comment208201>

    ```
    if added_repoinfo:
      rollback_repoinfo(stack_info['stack_dir'])
    ```



ambari-server/src/main/resources/scripts/add_common_service.py (line 517)
<https://reviews.apache.org/r/50087/#comment208200>

    ```
    if added_metainfo:
      rollback_metainfo(stack_info['stack_dir'], 
service_info['service_name'])```


- Matt


On July 15, 2016, 2:40 p.m., Lav Jain wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50087/
> -----------------------------------------------------------
> 
> (Updated July 15, 2016, 2:40 p.m.)
> 
> 
> Review request for Ambari, Alexander Denissov, Jayush Luniya, Matt, and Tim 
> Thorpe.
> 
> 
> Bugs: AMBARI-17717
>     https://issues.apache.org/jira/browse/AMBARI-17717
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Ambari should have a script that users can run to add a custom service and 
> repository to the stack or an existing cluster.
> 
> ```
> Lavs-MacBook-Pro:scripts ljain$ ./add_common_service.py -h
> Usage: add_common_service.py [options]
> 
> Options:
>   -h, --help            show this help message and exit
>   -u USER, --user=USER  Ambari login username (Required)
>   -p PASSWORD, --password=PASSWORD
>                         Ambari login password. Providing password through
>                         command line is not recommended. The script prompts
>                         for the password.
>   -t STACK, --stack=STACK
>                         Stack Name and Version to be added (Required).(Eg:
>                         HDP-2.4 or HDP-2.5)
>   -s SERVICE, --service=SERVICE
>                         Service Name and Version to be added.(Eg: HAWQ/2.0.0
>                         or PXF/3.0.0)
>   -r REPOURL, --repourl=REPOURL
>                         Repository URL which points to the rpm packages
>   -i REPOID, --repoid=REPOID
>                         Repository ID of the new repository
>   -o OSTYPE, --ostype=OSTYPE
>                         OS for the new repository (Eg: redhat6)
> ```
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/scripts/add_common_service.py PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/50087/diff/
> 
> 
> Testing
> -------
> 
> Tested manually with various combinations
> 
> 
> Thanks,
> 
> Lav Jain
> 
>

Reply via email to