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

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

                Author: ASF GitHub Bot
            Created on: 25/Jan/24 13:44
            Start Date: 25/Jan/24 13:44
    Worklog Time Spent: 10m 
      Work Description: zeroflag opened a new pull request, #835:
URL: https://github.com/apache/knox/pull/835

   ## What changes were proposed in this pull request?
   
   Adding a command to knoxcli that can generate a topology descriptor from a 
list of URLs.
   
   Usage:
   
   ```
   Create Knox topology descriptor file for one service
   Options are as follows: 
   --service-urls-file (required) path to a text file containing service urls 
   --service-name (required) the name of the service, such as WEBHDFS, IMPALAUI 
or HIVE 
   --descriptor-name (required) name of descriptor to be created 
   --provider-name (required) name of the referenced shared provider 
   --output-dir (optional) output directory to save the descriptor file 
   --force (optional) force rewriting of existing files, if not used, command 
will fail when the configs files with same name already exist. 
   ```
   
   ## How was this patch tested?
   ```bash
   cat /tmp/urls.txt
   
   http://url1.site:5000
   http://url2.site:5000
   ```
   
   ```bash
   $ bin/knoxcli.sh generate-descriptor --service-urls-file /tmp/urls.txt 
--service-name IMPALAUI --provider-name pam.json --descriptor-name impalads.json
   
   Descriptor impalads.json was successfully saved to 
/Users/attilamagyar/development/test/.
   ```
   
   
   ```bash
   cat impalads.txt
   
   {
     "name" : "impalads",
     "provider-config-ref" : "pam",
     "services" : [ {
       "params" : { },
       "name" : "IMPALAUI",
       "urls" : [ "http://url1.site:5000";, "http://url2.site:5000"; ]
     } ]
   }
   ```
   
   




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

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

> KnoxCLI command for generating descriptor for a role type from a list of hosts
> ------------------------------------------------------------------------------
>
>                 Key: KNOX-3002
>                 URL: https://issues.apache.org/jira/browse/KNOX-3002
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: KnoxCLI
>            Reporter: Attila Magyar
>            Assignee: Attila Magyar
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to