|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.DFSUtil
@InterfaceAudience.Private public class DFSUtil
Nested Class Summary | |
---|---|
static class |
DFSUtil.ErrorSimulator
Utility class to facilitate junit test error simulation. |
Constructor Summary | |
---|---|
DFSUtil()
|
Method Summary | |
---|---|
static String |
bytes2String(byte[] bytes)
Converts a byte array to a string using UTF8 encoding. |
static boolean |
isValidName(String src)
Whether the pathname is valid. |
static void |
login(org.apache.hadoop.conf.Configuration conf,
String keytabFileKey,
String userNameKey)
If a keytab has been provided, login as that user. |
static byte[] |
string2Bytes(String str)
Converts a string to a byte array using UTF8 encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DFSUtil()
Method Detail |
---|
public static boolean isValidName(String src)
public static void login(org.apache.hadoop.conf.Configuration conf, String keytabFileKey, String userNameKey) throws IOException
IOException
public static String bytes2String(byte[] bytes)
public static byte[] string2Bytes(String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |