public class HDPUtils extends Object
Two major issues include:
| Constructor and Description |
|---|
HDPUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFileToClassPath(String file,
org.apache.hadoop.conf.Configuration conf)
Add a hdfs file to classpath of one container.
|
static String |
findContainingFile(String fileName)
Find a real file that contains file name in class path.
|
static String |
findContainingJar(Class my_class) |
static String |
getHdpVersionForHDP224()
A ugly method to retrieve hdp version like 2.2.4.6633 from hadoop-hdfs jar name.
|
public static String getHdpVersionForHDP224()
public static void addFileToClassPath(String file, org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic static String findContainingFile(String fileName)
file - nameCopyright © 2019. All Rights Reserved.