Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-149 Support a YARN service registry
  3. SLIDER-222

Enhance registry command with --out option

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Slider 0.60
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Slider August #1, Slider August #2, Slider September #1, Slider October #1, Slider October #2, Slider November #2

      Description

      registry can query config but there is no option to save the config in a file:

      2014-07-09 18:12:34,275 [main] DEBUG main.ServiceLauncher - "org.apache.slider.Slider" "registry" "--getconf" "hbase-site" "--format" "xml" "--name" "cl3" "--out" "hbase-site.xml"
      2014-07-09 18:12:34,328 [main] DEBUG utility.LaunchedWorkflowCompositeService - Binding 9 Arguments:
      2014-07-09 18:12:34,328 [main] DEBUG utility.LaunchedWorkflowCompositeService - "registry" "--getconf" "hbase-site" "--format" "xml" "--name" "cl3" "--out" "hbase-site.xml"
      2014-07-09 18:12:34,455 [main] DEBUG main.ServiceLauncher - While running service Slider Client: com.beust.jcommander.ParameterException: Unknown option: --out in registry --getconf hbase-site --format xml --name cl3 --out hbase-site.xml
      org.apache.slider.core.exceptions.BadCommandArgumentsException: com.beust.jcommander.ParameterException: Unknown option: --out in registry --getconf hbase-site --format xml --name cl3 --out hbase-site.xml
      	at org.apache.slider.common.params.CommonArgs.parse(CommonArgs.java:119)
      	at org.apache.slider.client.SliderClient.bindArgs(SliderClient.java:168)
      	at org.apache.slider.core.main.ServiceLauncher.launchService(ServiceLauncher.java:172)
      	at org.apache.slider.core.main.ServiceLauncher.launchServiceRobustly(ServiceLauncher.java:427)
      	at org.apache.slider.core.main.ServiceLauncher.launchServiceAndExit(ServiceLauncher.java:358)
      	at org.apache.slider.core.main.ServiceLauncher.serviceMain(ServiceLauncher.java:568)
      	at org.apache.slider.Slider.main(Slider.java:49)
      Caused by: com.beust.jcommander.ParameterException: Unknown option: --out
      	at com.beust.jcommander.JCommander.parseValues(JCommander.java:735)
      	at com.beust.jcommander.JCommander.parse(JCommander.java:279)
      	at com.beust.jcommander.JCommander.parse(JCommander.java:262)
      	at com.beust.jcommander.JCommander.parseValues(JCommander.java:780)
      	at com.beust.jcommander.JCommander.parse(JCommander.java:279)
      	at com.beust.jcommander.JCommander.parse(JCommander.java:262)
      	at org.apache.slider.common.params.CommonArgs.parse(CommonArgs.java:117)
      

      'slider registry' should support --out option.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: