public class HadoopClasspathUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HadoopClasspathUtils.AcceptAllDirectoryFilter
Filter to accept all files.
|
static interface |
HadoopClasspathUtils.DirectoryFilter
Directory filter interface.
|
static class |
HadoopClasspathUtils.ExactDirectoryFilter
Filter which uses exact comparison.
|
static class |
HadoopClasspathUtils.PrefixDirectoryFilter
Filter which uses prefix to filter files.
|
static class |
HadoopClasspathUtils.SearchDirectory
Simple pair-like structure to hold directory name and a mask assigned to it.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMON_HOME
Hadoop common directory.
|
static String |
HADOOP_USER_LIBS
Arbitrary additional dependencies.
|
static String |
HDFS_HOME
Hadoop HDFS directory.
|
static String |
HOME
Hadoop home directory.
|
static String |
MAPRED_HOME
Hadoop mapred directory.
|
static String |
PREFIX
Prefix directory.
|
| Constructor and Description |
|---|
HadoopClasspathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<URL> |
classpathForClassLoader()
Gets Hadoop class path as a list of URLs (for in-process class loader usage).
|
static boolean |
exists(String path)
Answers if the given path denotes existing directory.
|
static HadoopLocations |
locations()
Gets Hadoop locations.
|
static Collection<HadoopClasspathUtils.SearchDirectory> |
parseUserLibs()
Parse user libs.
|
static Collection<HadoopClasspathUtils.SearchDirectory> |
parseUserLibs(String str)
Parse user libs.
|
public static final String PREFIX
public static final String HOME
public static final String COMMON_HOME
public static final String HDFS_HOME
public static final String MAPRED_HOME
public static final String HADOOP_USER_LIBS
public static List<URL> classpathForClassLoader() throws IOException
IOException - If failed.public static HadoopLocations locations() throws IOException
IOExceptionpublic static Collection<HadoopClasspathUtils.SearchDirectory> parseUserLibs() throws IOException
IOException - If failed.public static Collection<HadoopClasspathUtils.SearchDirectory> parseUserLibs(String str) throws IOException
str - String.IOException - If failed.public static boolean exists(String path)
path - The directory path.True if the given path denotes an existing directory.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016