Tabnine Logo
StringUtils.uriToString
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.apache.hadoop/hadoop-common

/**
 *
 * @param conf
 * @param mountTableName
 * @param src
 * @param settings
 * @param targets
 */
public static void addLinkNfly(Configuration conf, String mountTableName,
  String src, String settings, final URI ... targets) {
 settings = settings == null
   ? "minReplication=2,repairOnRead=true"
   : settings;
 conf.set(getConfigViewFsPrefix(mountTableName) + "." +
     Constants.CONFIG_VIEWFS_LINK_NFLY + "." + settings + "." + src,
   StringUtils.uriToString(targets));
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Set the configuration with the given set of archives
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 */
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set("mapred.cache.archives", sarchives);
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Set the configuration with the given set of files
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 */
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set("mapred.cache.files", sfiles);
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Set the configuration with the given set of archives
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 */
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set("mapred.cache.archives", sarchives);
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Set the configuration with the given set of files
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 */
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set("mapred.cache.files", sfiles);
}
origin: org.apache.hadoop/hadoop-mapred

/**
 * Set the configuration with the given set of files.  Intended to be
 * used by user code.
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheFiles(URI[])} instead
 */
@Deprecated
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set(MRJobConfig.CACHE_FILES, sfiles);
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Set the configuration with the given set of archives.  Intended
 * to be used by user code.
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheArchives(URI[])} instead
 */
@Deprecated
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives);
}
origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Set the configuration with the given set of archives.  Intended
 * to be used by user code.
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheArchives(URI[])} instead
 */
@Deprecated
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Set the configuration with the given set of archives.  Intended
 * to be used by user code.
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheArchives(URI[])} instead
 */
@Deprecated
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives);
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Set the configuration with the given set of files.  Intended to be
 * used by user code.
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheFiles(URI[])} instead
 */
@Deprecated
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set(MRJobConfig.CACHE_FILES, sfiles);
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Set the configuration with the given set of archives.  Intended
 * to be used by user code.
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheArchives(URI[])} instead
 */
@Deprecated
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives);
}
origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Set the configuration with the given set of files.  Intended to be
 * used by user code.
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheFiles(URI[])} instead
 */
@Deprecated
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set(MRJobConfig.CACHE_FILES, sfiles);
}
origin: org.apache.hadoop/hadoop-mapred

/**
 * Set the configuration with the given set of archives.  Intended
 * to be used by user code.
 * @param archives The list of archives that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheArchives(URI[])} instead
 */
@Deprecated
public static void setCacheArchives(URI[] archives, Configuration conf) {
 String sarchives = StringUtils.uriToString(archives);
 conf.set(MRJobConfig.CACHE_ARCHIVES, sarchives);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Set the configuration with the given set of files.  Intended to be
 * used by user code.
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheFiles(URI[])} instead
 */
@Deprecated
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set(MRJobConfig.CACHE_FILES, sfiles);
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Set the configuration with the given set of files.  Intended to be
 * used by user code.
 * @param files The list of files that need to be localized
 * @param conf Configuration which will be changed
 * @deprecated Use {@link Job#setCacheFiles(URI[])} instead
 */
@Deprecated
public static void setCacheFiles(URI[] files, Configuration conf) {
 String sfiles = StringUtils.uriToString(files);
 conf.set(MRJobConfig.CACHE_FILES, sfiles);
}
org.apache.hadoop.utilStringUtilsuriToString

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

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Join (org.hibernate.mapping)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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