Github user samarthjain commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/41#discussion_r26238762
  
    --- Diff: phoenix-pherf/src/main/java/org/apache/phoenix/pherf/Pherf.java 
---
    @@ -0,0 +1,204 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + *   or more contributor license agreements.  See the NOTICE file
    + *   distributed with this work for additional information
    + *   regarding copyright ownership.  The ASF licenses this file
    + *   to you under the Apache License, Version 2.0 (the
    + *   "License"); you may not use this file except in compliance
    + *   with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + *   Unless required by applicable law or agreed to in writing, software
    + *   distributed under the License is distributed on an "AS IS" BASIS,
    + *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
    + *   See the License for the specific language governing permissions and
    + *   limitations under the License.
    + */
    +
    +package org.apache.phoenix.pherf;
    +
    +import org.apache.phoenix.pherf.configuration.XMLConfigParser;
    +import org.apache.phoenix.pherf.schema.SchemaReader;
    +import org.apache.phoenix.pherf.util.PhoenixUtil;
    +import org.apache.phoenix.pherf.util.ResourceList;
    +import org.apache.phoenix.pherf.workload.WorkloadExecutor;
    +
    +import org.apache.commons.cli.*;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +import java.nio.file.Path;
    +import java.util.Collection;
    +import java.util.Properties;
    +
    +public class Pherf {
    +    private static final Logger logger = 
LoggerFactory.getLogger(Pherf.class);
    +    private static final Options options = new Options();
    +
    +    static {
    +//        options.addOption("r", "release", true, "Required option. 
Release that you want to test. 190, 192, ...");
    +        options.addOption("m", "monitor", false, "Launch the stats 
profilers");
    +        options.addOption("monitorFrequency", true, "Override for 
frequency in Ms for which monitor should log stats. " +
    +                "\n See pherf.default.monitorFrequency in 
pherf.properties");
    +        options.addOption("d", "debug", false, "Put tool in debug mode");
    +        options.addOption("z", "zookeeper", true, "HBase Zookeeper address 
for connection. Default: localhost");
    +        options.addOption("l", "load", false, "Loads data according to 
specified configuration values.");
    +        options.addOption("scenarioFile", true, "Regex or file name for 
the Test Scenario configuration .xml file to use.");
    +        options.addOption("drop", true, "Regex drop all tables with schema 
name as PHERF. " +
    +                "\nExample drop Event tables: -drop .*(EVENT).* Drop all: 
-drop .* or -drop all");
    +        options.addOption("schemaFile", true, "Regex or file name for the 
Test phoenix table schema .sql to use.");
    +        options.addOption("rowCountOverride", true, "Row count override to 
use instead of one specified in scenario.");
    +        options.addOption("hint", true, "Executes all queries with 
specified hint. Example SMALL");
    +        options.addOption("diff", false, "Run pherf in verification mode 
and diff with exported results");
    +        options.addOption("export", false, "Exports query results to CSV 
files in " + PherfConstants.EXPORT_DIR + " directory");
    +        options.addOption("listFiles", false, "List available resource 
files");
    +        options.addOption("writerThreadSize", true, "Override the default 
number of writer threads. " +
    +                "See pherf.default.dataloader.threadpool in 
Pherf.properties.");
    +        options.addOption("q", "query", false, "Executes multi-threaded 
query sets");
    +        options.addOption("h", "help", false, "Get help on using this 
utility.");
    +    }
    +
    +//    private final String release;
    --- End diff --
    
    same as above.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to