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

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

Best Java code snippets using org.apache.accumulo.core.client.mapreduce.AccumuloFileOutputFormat (Showing top 7 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: apache/accumulo

final Path file = this.getDefaultWorkFile(context, "." + extension);
final int visCacheSize = FileOutputConfigurator.getVisibilityCacheSize(conf);
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/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: apache/incubator-rya

if (isValidCompressionType(compressionType)) {
  log.info("File compression type: " + compressionType);
  AccumuloFileOutputFormat.setCompressionType(job, compressionType);
} else {
  log.warn("Invalid compression type: " + compressionType);
origin: org.apache.accumulo/examples-simple

AccumuloFileOutputFormat.setOutputPath(job, new Path(workDir + "/files"));
origin: org.apache.accumulo/accumulo-core

final Path file = this.getDefaultWorkFile(context, "." + extension);
final int visCacheSize = ConfiguratorBase.getVisibilityCacheSize(conf);
origin: org.apache.accumulo/accumulo-client-mapreduce

final Path file = this.getDefaultWorkFile(context, "." + extension);
final int visCacheSize = ConfiguratorBase.getVisibilityCacheSize(conf);
org.apache.accumulo.core.client.mapreduceAccumuloFileOutputFormat

Javadoc

This class allows MapReduce jobs to write output in the Accumulo data file format.
Care should be taken to write only sorted data (sorted by Key), as this is an important requirement of Accumulo data files.

The output path to be created must be specified via AccumuloFileOutputFormat#setOutputPath(Job,Path). This is inherited from FileOutputFormat#setOutputPath(Job,Path). Other methods from FileOutputFormatare not supported and may be ignored or cause failures. Using other Hadoop configuration options that affect the behavior of the underlying files directly in the Job's configuration may work, but are not directly supported at this time.

Most used methods

  • getDefaultWorkFile
  • setOutputPath
  • 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

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Table (org.hibernate.mapping)
    A relational table
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