@Override public int run(String[] args) throws Exception { Options opts = new Options(); Integer exitCode = new MyArgumentParser().parseArgs(args, getConf(), opts); if (exitCode != null) { return exitCode; } return run(opts); }
@Override public int compare(Object o1, Object o2) { return INSTANCE.compare(o1, o2); } }
public static File downloadConfigDir(SolrZkClient zkClient, String configName) throws IOException, InterruptedException, KeeperException { return DELEGATE.downloadConfigDir(zkClient, configName); } }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { Utils.getLogConfigFile(context.getConfiguration()); Path workDir = getDefaultWorkFile(context, ""); return new TreeMergeRecordWriter(context, workDir); }
@Override public RecordWriter<K, V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { Utils.getLogConfigFile(context.getConfiguration()); Path workDir = getDefaultWorkFile(context, ""); int batchSize = getBatchSize(context.getConfiguration()); return new SolrRecordWriter<K,V>(context, workDir, batchSize); }
public static void setupSolrHomeCache(File solrHomeDir, Job job) throws IOException{ File solrHomeZip = createSolrHomeZip(solrHomeDir); addSolrConfToDistributedCache(job, solrHomeZip); }
public static String readConfigName(SolrZkClient zkClient, String collection) throws KeeperException, InterruptedException { return DELEGATE.readConfigName(zkClient, collection); }
public static SolrZkClient getZkClient(String zkHost) { return DELEGATE.getZkClient(zkHost); }
public static List<List<String>> extractShardUrls(String zkHost, String collection) { return DELEGATE.extractShardUrls(zkHost, collection); }
public static File createSolrHomeZip(File solrHomeDir) throws IOException { return createSolrHomeZip(solrHomeDir, false); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { Utils.getLogConfigFile(context.getConfiguration()); Path workDir = getDefaultWorkFile(context, ""); return new TreeMergeRecordWriter(context, workDir); }
@Override public int run(String[] args) throws Exception { Options opts = new Options(); Integer exitCode = new MyArgumentParser().parseArgs(args, getConf(), opts); if (exitCode != null) { return exitCode; } return run(opts); }
@Override public RecordWriter<K, V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { Utils.getLogConfigFile(context.getConfiguration()); Path workDir = getDefaultWorkFile(context, ""); int batchSize = getBatchSize(context.getConfiguration()); return new SolrRecordWriter<K, V>(context, workDir, batchSize); }
@Override public int compare(Object o1, Object o2) { return INSTANCE.compare(o1, o2); } }
public static File downloadConfigDir(SolrZkClient zkClient, String configName, boolean useZkSolrConfig) throws IOException { return DELEGATE.downloadConfigDir(zkClient, configName, useZkSolrConfig); } }
public static void setupSolrHomeCache(File solrHomeDir, Job job) throws IOException{ File solrHomeZip = createSolrHomeZip(solrHomeDir); addSolrConfToDistributedCache(job, solrHomeZip); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { Utils.getLogConfigFile(context.getConfiguration()); Path workDir = getDefaultWorkFile(context, ""); return new TreeMergeRecordWriter(context, workDir); }
@Override public RecordWriter getRecordWriter(TaskAttemptContext context) throws IOException { Utils.getLogConfigFile(context.getConfiguration()); Path workDir = getDefaultWorkFile(context, ""); return new TreeMergeRecordWriter(context, workDir); }