Codota Logo
AccumuloFileOutputFormat.setOutputPath
Code IndexAdd Codota to your IDE (free)

How to use
setOutputPath
method
in
org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat

Best Java code snippets using org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat.setOutputPath (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.apache.accumulo/accumulo-test

 @Override
 public int run(String[] args) throws Exception {
  Job job = Job.getInstance(getConf(), this.getClass().getSimpleName());
  job.setJarByClass(this.getClass());

  if (job.getJar() == null) {
   log.error("M/R requires a jar file!  Run mvn package.");
   return 1;
  }

  job.setInputFormatClass(SequenceFileInputFormat.class);
  SequenceFileInputFormat.setInputPaths(job, seqFile);

  job.setPartitionerClass(KeyRangePartitioner.class);
  KeyRangePartitioner.setSplitFile(job, splitFile);

  job.setMapOutputKeyClass(Key.class);
  job.setMapOutputValueClass(Value.class);

  job.setNumReduceTasks(splits.size() + 1);

  job.setOutputFormatClass(AccumuloFileOutputFormat.class);
  AccumuloFileOutputFormat.setOutputPath(job, new Path(outputDir));

  job.waitForCompletion(true);
  return job.isSuccessful() ? 0 : 1;
 }
}
origin: org.apache.accumulo/accumulo-test

@Override
public int run(String[] args) throws Exception {
 if (args.length != 2) {
  throw new IllegalArgumentException(
    "Usage : " + MRTester.class.getName() + " <table> <outputfile>");
 }
 String table = args[0];
 assertionErrors.put(table + "_map", new AssertionError("Dummy_map"));
 assertionErrors.put(table + "_cleanup", new AssertionError("Dummy_cleanup"));
 Job job = Job.getInstance(getConf(),
   this.getClass().getSimpleName() + "_" + System.currentTimeMillis());
 job.setJarByClass(this.getClass());
 job.setInputFormatClass(AccumuloInputFormat.class);
 AccumuloInputFormat.setConnectorInfo(job, getAdminPrincipal(), getAdminToken());
 AccumuloInputFormat.setInputTableName(job, table);
 AccumuloInputFormat.setZooKeeperInstance(job, getCluster().getClientConfig());
 AccumuloFileOutputFormat.setOutputPath(job, new Path(args[1]));
 AccumuloFileOutputFormat.setSampler(job, SAMPLER_CONFIG);
 job.setMapperClass(
   table.endsWith("_mapreduce_bad_table") ? BadKeyMapper.class : Mapper.class);
 job.setMapOutputKeyClass(Key.class);
 job.setMapOutputValueClass(Value.class);
 job.setOutputFormatClass(AccumuloFileOutputFormat.class);
 job.getConfiguration().set("MRTester_tableName", table);
 job.setNumReduceTasks(0);
 job.waitForCompletion(true);
 return job.isSuccessful() ? 0 : 1;
}
origin: org.apache.accumulo/examples-simple

AccumuloFileOutputFormat.setOutputPath(job, new Path(workDir + "/files"));
org.apache.accumulo.core.client.mapreduceAccumuloFileOutputFormatsetOutputPath

Popular methods of AccumuloFileOutputFormat

  • getDefaultWorkFile
  • setCompressionType
    Sets the compression type to use for data blocks. Specifying a compression may require additional li
  • setSampler
    Specify a sampler to be used when writing out data. This will result in the output file having sampl

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now