- bytes2String
Decode a specific range of bytes of the given byte array to a string using UTF8.
- isValidName
Whether the pathname is valid. Currently prohibits relative paths, and names
which contain a ":" or
- string2Bytes
Converts a string to a byte array using UTF8 encoding.
- bytes2byteArray
Splits first len bytes in bytes to array of arrays of bytes on byte separator
- getHttpClientScheme
Determine whether HTTP or HTTPS should be used to connect to the remote server.
Currently the client
- getHttpPolicy
Get http policy.
- getInfoServer
return server http or https address from the configuration for a given namenode
rpc address.
- getNamenodeNameServiceId
Get nameservice Id for the NameNode based on namenode RPC address matching the
local node address.
- locatedBlocks2Locations
Convert a LocatedBlocks to BlockLocations[]
- setGenericConf
Set the configuration based on the service id given in the argv
- addKeySuffixes
Return configuration key of format key.suffix1.suffix2...suffixN
- addressMapToString
Format the given map, as returned by other functions in this class, into a
string suitable for debug