hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elliott Clark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-10409) Allow config options related to zookeeper to be passed to IntegrationTestsDriver
Date Thu, 23 Jan 2014 22:15:38 GMT

    [ https://issues.apache.org/jira/browse/HBASE-10409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13880431#comment-13880431
] 

Elliott Clark commented on HBASE-10409:
---------------------------------------

Here's the way to use doStaticMain:

{code}
package org.apache.hadoop.hbase.util;

import org.apache.commons.cli.CommandLine;

public class TestTool extends AbstractHBaseTool {
  @Override
  protected void addOptions() {

  }

  @Override
  protected void processOptions(CommandLine cmd) {

  }

  @Override
  protected int doWork() throws Exception {
    System.out.println(getConf().get("testValue","default"));
    return 0;
  }

  public static void main(String[] args) {
    new TestTool().doStaticMain(args);
  }
}
{code}

You'll see this mirrored in LoadTestTool

> Allow config options related to zookeeper to be passed to IntegrationTestsDriver
> --------------------------------------------------------------------------------
>
>                 Key: HBASE-10409
>                 URL: https://issues.apache.org/jira/browse/HBASE-10409
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 0.98.0, 0.99.0
>
>         Attachments: 10409-v1.txt
>
>
> Currently IntegrationTestsDriver only accepts one parameter: regex for integration test.
> {code}
>   public static void main(String[] args) throws Exception {
>     int ret = ToolRunner.run(new IntegrationTestsDriver(), args);
> {code}
> To allow IntegrationTestsDriver to be activated through Java API, support for passing
config options related to zookeeper should be added - similarly to what LoadTestTool supports.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message