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

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

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

origin: org.apache.hadoop/hadoop-common

case MERGE:
case NFLY:
 final URI[] targetUris = StringUtils.stringToURI(
   StringUtils.getStrings(target));
 newLink = new INodeLink<T>(fullPath, aUgi,
origin: com.facebook.hadoop/hadoop-core

/**
 * Get cache archives set in the Configuration
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 */
public static URI[] getCacheArchives(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings("mapred.cache.archives"));
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Get cache archives set in the Configuration
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 */
public static URI[] getCacheArchives(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings("mapred.cache.archives"));
}
origin: org.jvnet.hudson.hadoop/hadoop-core

/**
 * Get cache files set in the Configuration
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 */
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings("mapred.cache.files"));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Get cache archives set in the Configuration
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 */
public static URI[] getSharedCacheArchives(Configuration conf)
 throws IOException {
 return
  StringUtils.stringToURI(conf.getStrings("mapred.cache.shared.archives"));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Get cache files set in the Configuration
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 */
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings("mapred.cache.files"));
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Get cache files set in the Configuration
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 */
public static URI[] getSharedCacheFiles(Configuration conf)
 throws IOException {
 return
  StringUtils.stringToURI(conf.getStrings("mapred.cache.shared.files"));
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Get cache archives set in the Configuration.  Used by
 * internal DistributedCache and MapReduce code.
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheArchives()} instead
 */
@Deprecated
public static URI[] getCacheArchives(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES));
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Get cache archives set in the Configuration.  Used by
 * internal DistributedCache and MapReduce code.
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheArchives()} instead
 */
@Deprecated
public static URI[] getCacheArchives(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES));
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Get cache files set in the Configuration.  Used by internal
 * DistributedCache and MapReduce code.
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheFiles()} instead
 */
@Deprecated
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES));
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Get cache files set in the Configuration.  Used by internal
 * DistributedCache and MapReduce code.
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheFiles()} instead
 */
@Deprecated
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES));
}
origin: io.hops/hadoop-mapreduce-client-core

/**
 * Get cache archives set in the Configuration.  Used by
 * internal DistributedCache and MapReduce code.
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheArchives()} instead
 */
@Deprecated
public static URI[] getCacheArchives(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES));
}
origin: ch.cern.hadoop/hadoop-mapreduce-client-core

/**
 * Get cache files set in the Configuration.  Used by internal
 * DistributedCache and MapReduce code.
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheFiles()} instead
 */
@Deprecated
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES));
}
origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Get cache archives set in the Configuration.  Used by
 * internal DistributedCache and MapReduce code.
 * @param conf The configuration which contains the archives
 * @return A URI array of the caches set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheArchives()} instead
 */
@Deprecated
public static URI[] getCacheArchives(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES));
}
origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core

/**
 * Get cache files set in the Configuration.  Used by internal
 * DistributedCache and MapReduce code.
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheFiles()} instead
 */
@Deprecated
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES));
}
origin: org.apache.hadoop/hadoop-mapred

/**
 * Get cache files set in the Configuration.  Used by internal
 * DistributedCache and MapReduce code.
 * @param conf The configuration which contains the files
 * @return A URI array of the files set in the Configuration
 * @throws IOException
 * @deprecated Use {@link JobContext#getCacheFiles()} instead
 */
@Deprecated
public static URI[] getCacheFiles(Configuration conf) throws IOException {
 return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES));
}
origin: ch.cern.hadoop/hadoop-streaming

/**
 * get the uris of all the files/caches
 */
protected void getURIs(String lcacheArchives, String lcacheFiles) {
 String archives[] = StringUtils.getStrings(lcacheArchives);
 String files[] = StringUtils.getStrings(lcacheFiles);
 fileURIs = StringUtils.stringToURI(files);
 archiveURIs = StringUtils.stringToURI(archives);
}
origin: org.apache.hadoop/hadoop-streaming

/**
 * get the uris of all the files/caches
 */
protected void getURIs(String lcacheArchives, String lcacheFiles) {
 String archives[] = StringUtils.getStrings(lcacheArchives);
 String files[] = StringUtils.getStrings(lcacheFiles);
 fileURIs = StringUtils.stringToURI(files);
 archiveURIs = StringUtils.stringToURI(archives);
}
origin: com.github.jiayuhan-it/hadoop-common

@Test (timeout = 30000)
public void testStringToURI() {
 String[] str = new String[] { "file://" };
 try {
  StringUtils.stringToURI(str);
  fail("Ignoring URISyntaxException while creating URI from string file://");
 } catch (IllegalArgumentException iae) {
  assertEquals("Failed to create uri for file://", iae.getMessage());
 }
}
origin: ch.cern.hadoop/hadoop-common

@Test (timeout = 30000)
public void testStringToURI() {
 String[] str = new String[] { "file://" };
 try {
  StringUtils.stringToURI(str);
  fail("Ignoring URISyntaxException while creating URI from string file://");
 } catch (IllegalArgumentException iae) {
  assertEquals("Failed to create uri for file://", iae.getMessage());
 }
}
org.apache.hadoop.utilStringUtilsstringToURI

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

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Best IntelliJ plugins
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