Tabnine Logo
Mapper$Context.getStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
getStatus
method
in
org.apache.hadoop.mapreduce.Mapper$Context

Best Java code snippets using org.apache.hadoop.mapreduce.Mapper$Context.getStatus (Showing top 3 results out of 315)

origin: ch.cern.hadoop/hadoop-mapreduce-client-jobclient

 @Override
 public void map(LongWritable key, Text value, Context context)
   throws IOException {
  StringBuilder sb = new StringBuilder(512);
  for (int i = 0; i < 1000; i++) {
   sb.append("a");
  }
  context.setStatus(sb.toString());
  int progressStatusLength = context.getConfiguration().getInt(
    MRConfig.PROGRESS_STATUS_LEN_LIMIT_KEY,
    MRConfig.PROGRESS_STATUS_LEN_LIMIT_DEFAULT);
  if (context.getStatus().length() > progressStatusLength) {
   throw new IOException("Status is not truncated");
  }
 }
}
origin: org.apache.hadoop/hadoop-mapred-test

 @Override
 protected void setup(Context context) throws IOException {
  context.setStatus(myStatus);
  assertEquals(myStatus, context.getStatus());
 }
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-jobclient

 @Override
 protected void setup(Context context) throws IOException {
  context.setStatus(myStatus);
  assertEquals(myStatus, context.getStatus());
 }
}
org.apache.hadoop.mapreduceMapper$ContextgetStatus

Popular methods of Mapper$Context

  • write
  • getConfiguration
  • getCounter
  • getInputSplit
  • progress
  • setStatus
  • getTaskAttemptID
  • nextKeyValue
  • getCurrentValue
  • getCurrentKey
  • getNumReduceTasks
  • getJobID
  • getNumReduceTasks,
  • getJobID,
  • getInputFormatClass,
  • getLocalCacheFiles,
  • getOutputCommitter,
  • getCredentials,
  • getLocalCacheArchives,
  • getCacheArchives,
  • getCacheFiles

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • findViewById (Activity)
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Collectors (java.util.stream)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now