You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Gabor Zele (Jira)" <ji...@apache.org> on 2022/10/24 14:46:00 UTC

[jira] [Created] (KUDU-3410) allow kudu master list as an argument

Gabor Zele created KUDU-3410:
--------------------------------

             Summary: allow kudu master list as an argument
                 Key: KUDU-3410
                 URL: https://issues.apache.org/jira/browse/KUDU-3410
             Project: Kudu
          Issue Type: Improvement
          Components: CLI
            Reporter: Gabor Zele


Currently, CLI commands accepts the master addresses at a fixed position:

kudu <command> <subcommand> <master_addresses>

While arguments (starting with "-") could be placed anywhere after "kudu". All of the below variants produce valid output:
{noformat}
# kudu master list <master_addresses> -format=csv
# kudu -format=csv master list <master_addresses>
# kudu master list -format=csv <master_addresses>{noformat}
My problem is that I would like to create a shell alias for the "kudu" command, so I don't have to specify any <master_addresses> at all. Unfortunately this is not easy, as:
{noformat}
# alias kudu="kudu <master_addresses>"{noformat}
won't work, as <master_addresses> are expected to be after the command/subcommand part.

However, if master list could be passed as an argument, then this would be easily possible:
{code:java}
# alias kudu="kudu -master_addresses=<master_addresses>" 
# alias kudu="kudu -master_addresses=@cluster_alias" {code}
as the "-master_addresses=" argument could be placed before the command/subcommand part.

 



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