You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/17 20:43:00 UTC

[jira] [Work logged] (KNOX-2287) Add a KnoxCLI command to convert topologies to providers and descriptors

     [ https://issues.apache.org/jira/browse/KNOX-2287?focusedWorklogId=404959&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-404959 ]

ASF GitHub Bot logged work on KNOX-2287:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Mar/20 20:42
            Start Date: 17/Mar/20 20:42
    Worklog Time Spent: 10m 
      Work Description: moresandeep commented on pull request #292: KNOX-2287 KnoxCLI convert topology to provider and descriptor
URL: https://github.com/apache/knox/pull/292
 
 
   ## What changes were proposed in this pull request?
   This PR proposes to add a KnoxCLI command to convert topology to provider and descriptor.
   
   ```
   knoxcli.sh convert-topology 
   --path "path/to/topology.xml" 
   --provider-name my-provider.json 
   [--descriptor-name my-descriptor.json] 
   [--topology-name topologyName] 
   [--output-path "path/to/configs/"] 
   [--force] 
   [--cluster clusterName] 
   [--discovery-url url] 
   [--discovery-user discoveryUser] 
   [--discovery-pwd-alias discoveryPasswordAlias] 
   [--discovery-type discoveryType]
   ```
   
   _Options are as follows:_
   **--path** (required) path to topology xml file
   **--provider-name** (required) name of the provider json config file (including .json extension)
   **--descriptor-name** (optional) name of descriptor json config file (including .json extension)
   **--topology-name** (optional) topology-name can be use instead of --path option, if used, KnoxCLI will attempt to find topology from deployed topologies.
   	 if not provided topology name will be used as descriptor name
   **--output-path** (optional) output directory to save provider and descriptor config files
   	 if not provided config files will be saved in appropriate Knox config directory
   **--force** (optional) force rewriting of existing files, if not used, command will fail when the configs files with same name already exist.
   **--cluster** (optional) cluster name, required for service discovery
   **--discovery-url** (optional) service discovery URL, required for service discovery
   **--discovery-user** (optional) service discovery user, required for service discovery
   **--discovery-pwd-alias** (optional) password alias for service discovery user, required for service discovery
   **--discovery-type** (optional) service discovery type, required for service discovery
   
   _Example_
   ```
   $knoxcli.sh convert-topology --path /Users/smore/Desktop/sandbox.xml --provider-name sandbox-provider.json --descriptor-name sandbox-descriptor.json
   Provider sandbox-provider.json and descriptor sandbox-descriptor.json generated for topology sandbox
   ```
   ## How was this patch tested?
   This patch was locally tested
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 404959)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add a KnoxCLI command to convert topologies to providers and descriptors
> ------------------------------------------------------------------------
>
>                 Key: KNOX-2287
>                 URL: https://issues.apache.org/jira/browse/KNOX-2287
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: KnoxCLI
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>            Priority: Major
>             Fix For: 1.4.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Such a CLI command would be handy for upgrades and to convert xml topologies to descriptor/provider pattern.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)