congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StringUtils.stringToPath
Code IndexAdd Tabnine to your IDE (free)

How to use
stringToPath
method
in
org.apache.hadoop.util.StringUtils

Best Java code snippets using org.apache.hadoop.util.StringUtils.stringToPath (Showing top 20 results out of 315)

origin: apache/hbase

private Path[] getInputPaths(Configuration conf) {
 String inpDirs = conf.get(FileInputFormat.INPUT_DIR);
 return StringUtils.stringToPath(
  inpDirs.split(conf.get(WALPlayer.INPUT_FILES_SEPARATOR_KEY, ",")));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Return the path array of the localized caches
 * @param conf Configuration that contains the localized archives
 * @return A path array of localized caches
 * @throws IOException
 */
public static Path[] getLocalCacheArchives(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf
                 .getStrings("mapred.cache.localArchives"));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Return the path array of the localized caches
 * @param conf Configuration that contains the localized archives
 * @return A path array of localized caches
 * @throws IOException
 */
public static Path[] getLocalSharedCacheArchives(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf
   .getStrings("mapred.cache.shared.localArchives"));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Return the path array of the localized files
 * @param conf Configuration that contains the localized files
 * @return A path array of localized files
 * @throws IOException
 */
public static Path[] getLocalSharedCacheFiles(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf
   .getStrings("mapred.cache.shared.localFiles"));
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Return the path array of the localized files
 * @param conf Configuration that contains the localized files
 * @return A path array of localized files
 * @throws IOException
 */
public static Path[] getLocalCacheFiles(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf.getStrings("mapred.cache.localFiles"));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Return the path array of the localized files
 * @param conf Configuration that contains the localized files
 * @return A path array of localized files
 * @throws IOException
 */
public static Path[] getLocalCacheFiles(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf.getStrings("mapred.cache.localFiles"));
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Return the path array of the localized caches
 * @param conf Configuration that contains the localized archives
 * @return A path array of localized caches
 * @throws IOException
 */
public static Path[] getLocalCacheArchives(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf
                 .getStrings("mapred.cache.localArchives"));
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Return the path array of the localized files.  Intended to be used
 * by user code.
 * @param conf Configuration that contains the localized files
 * @return A path array of localized files
 * @throws IOException
 * @deprecated Use {@link JobContext#getLocalCacheFiles()} instead
 */
@Deprecated
public static Path[] getLocalCacheFiles(Configuration conf)
 throws IOException {
 return StringUtils.stringToPath(conf.getStrings(MRJobConfig.CACHE_LOCALFILES));
}
origin: org.apache.hbase/hbase-mapreduce

private Path[] getInputPaths(Configuration conf) {
 String inpDirs = conf.get(FileInputFormat.INPUT_DIR);
 return StringUtils.stringToPath(
  inpDirs.split(conf.get(WALPlayer.INPUT_FILES_SEPARATOR_KEY, ",")));
}
origin: com.aliyun.hbase/alihbase-mapreduce

private Path[] getInputPaths(Configuration conf) {
 String inpDirs = conf.get(FileInputFormat.INPUT_DIR);
 return StringUtils.stringToPath(
  inpDirs.split(conf.get(WALPlayer.INPUT_FILES_SEPARATOR_KEY, ",")));
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: apache/hama

/**
 * Sets the given comma separated paths as the list of inputs for the BSP job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as the list of
 *          inputs for the BSP job.
 */
public static void setInputPaths(BSPJob conf, String commaSeparatedPaths) {
 setInputPaths(conf,
   StringUtils.stringToPath(getPathStrings(commaSeparatedPaths)));
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: org.apache.hama/hama-core

/**
 * Sets the given comma separated paths as the list of inputs for the BSP job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as the list of
 *          inputs for the BSP job.
 */
public static void setInputPaths(BSPJob conf, String commaSeparatedPaths) {
 setInputPaths(conf,
   StringUtils.stringToPath(getPathStrings(commaSeparatedPaths)));
}
origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: org.apache.hadoop/hadoop-mapred

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param conf Configuration of the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(JobConf conf, String commaSeparatedPaths) {
 setInputPaths(conf, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Sets the given comma separated paths as the list of inputs 
 * for the map-reduce job.
 * 
 * @param job the job
 * @param commaSeparatedPaths Comma separated paths to be set as 
 *        the list of inputs for the map-reduce job.
 */
public static void setInputPaths(Job job, 
                 String commaSeparatedPaths
                 ) throws IOException {
 setInputPaths(job, StringUtils.stringToPath(
           getPathStrings(commaSeparatedPaths)));
}
org.apache.hadoop.utilStringUtilsstringToPath

Popular methods of StringUtils

  • stringifyException
    Make a string representation of the exception.
  • join
    Concatenates strings, using a separator.
  • split
  • arrayToString
  • toLowerCase
    Converts all of the characters in this String to lower case with Locale.ENGLISH.
  • escapeString
  • startupShutdownMessage
    Print a log message for starting up and shutting down
  • getStrings
    Returns an arraylist of strings.
  • toUpperCase
    Converts all of the characters in this String to upper case with Locale.ENGLISH.
  • byteToHexString
    Given an array of bytes it will convert the bytes to a hex string representation of the bytes
  • formatTime
    Given the time in long milliseconds, returns a String in the format Xhrs, Ymins, Z sec.
  • unEscapeString
  • formatTime,
  • unEscapeString,
  • getStringCollection,
  • byteDesc,
  • formatPercent,
  • getTrimmedStrings,
  • equalsIgnoreCase,
  • format,
  • formatTimeDiff,
  • getTrimmedStringCollection

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best plugins for Eclipse
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