CleanupQueue.deletePath
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.hadoop.mapred.CleanupQueue.deletePath(Showing top 4 results out of 315)

origin: com.facebook.presto.hadoop/hadoop-cdh4

 public void run() {
  if (LOG.isDebugEnabled()) {
   LOG.debug(getName() + " started.");
  }
  PathDeletionContext context = null;
  while (true) {
   try {
    context = queue.take();
    // delete the path.
    if (!deletePath(context)) {
     LOG.warn("CleanupThread:Unable to delete path " + context.fullPath);
    }
    else if (LOG.isDebugEnabled()) {
     LOG.debug("DELETED " + context.fullPath);
    }
   } catch (InterruptedException t) {
    LOG.warn("Interrupted deletion of " + context.fullPath);
    return;
   } catch (Exception e) {
    LOG.warn("Error deleting path " + context.fullPath + ": " + e);
   } 
  }
 }
}
origin: io.hops/hadoop-mapreduce-client-core

 public void run() {
  if (LOG.isDebugEnabled()) {
   LOG.debug(getName() + " started.");
  }
  PathDeletionContext context = null;
  while (true) {
   try {
    context = queue.take();
    // delete the path.
    if (!deletePath(context)) {
     LOG.warn("CleanupThread:Unable to delete path " + context.fullPath);
    }
    else if (LOG.isDebugEnabled()) {
     LOG.debug("DELETED " + context.fullPath);
    }
   } catch (InterruptedException t) {
    LOG.warn("Interrupted deletion of " + context.fullPath);
    return;
   } catch (Exception e) {
    LOG.warn("Error deleting path " + context.fullPath + ": " + e);
   } 
  }
 }
}
origin: org.apache.hadoop/hadoop-mapred

 public void run() {
  if (LOG.isDebugEnabled()) {
   LOG.debug(getName() + " started.");
  }
  PathDeletionContext context = null;
  while (true) {
   try {
    context = queue.take();
    // delete the path.
    if (!deletePath(context)) {
     LOG.warn("CleanupThread:Unable to delete path " + context.fullPath);
    }
    else if (LOG.isDebugEnabled()) {
     LOG.debug("DELETED " + context.fullPath);
    }
   } catch (InterruptedException t) {
    LOG.warn("Interrupted deletion of " + context.fullPath);
    return;
   } catch (Exception e) {
    LOG.warn("Error deleting path " + context.fullPath + ": " + e);
   } 
  }
 }
}
origin: com.facebook.hadoop/hadoop-core

 public void run() {
  if (LOG.isDebugEnabled()) {
   LOG.debug(getName() + " started.");
  }
  PathDeletionContext context = null;
  while (true) {
   try {
    context = queue.take();
    // delete the path.
    if (!deletePath(context)) {
     LOG.warn("CleanupThread:Unable to delete path " + context.fullPath);
    }
    else if (LOG.isDebugEnabled()) {
     LOG.debug("DELETED " + context.fullPath);
    }
   } catch (InterruptedException t) {
    LOG.warn("Interrupted deletion of " + context.fullPath);
    return;
   } catch (Exception e) {
    LOG.warn("Error deleting path " + context.fullPath + ": " + e);
   } 
  }
 }
}
org.apache.hadoop.mapredCleanupQueuedeletePath

Popular methods of CleanupQueue

  • addToQueue
    Adds the paths to the queue of paths to be deleted by cleanupThread.
  • <init>
    Create a singleton path-clean-up queue. It can be used to delete paths(directories/files) in a separ
  • getInstance

Popular classes and methods

  • getOriginalFilename (MultipartFile)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    A table of data representing a database result set, which is usually generated by executing a statem
  • LinkedHashMap (java.util)
    Hash table implementation of the Map interface with predictable iteration order. [Sun docs] [http:/
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BoxLayout (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)