public class IgniteYarnUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_IGNITE_CONFIG |
static String |
JAR_NAME |
static String |
SPACE |
static String |
YARN_LOG_OUT |
Constructor and Description |
---|
IgniteYarnUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.fs.Path |
copyLocalToHdfs(org.apache.hadoop.fs.FileSystem fs,
String src,
String dst) |
static ByteBuffer |
createTokenBuffer(org.apache.hadoop.security.Credentials creds)
Creates a ByteBuffer with serialized
Credentials . |
static org.apache.hadoop.yarn.api.records.LocalResource |
setupFile(org.apache.hadoop.fs.Path file,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.yarn.api.records.LocalResourceType type) |
public static final String DEFAULT_IGNITE_CONFIG
public static final String SPACE
public static final String JAR_NAME
public static final String YARN_LOG_OUT
public static org.apache.hadoop.yarn.api.records.LocalResource setupFile(org.apache.hadoop.fs.Path file, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.yarn.api.records.LocalResourceType type) throws Exception
file
- Path.fs
- File system.type
- Local resource type.Exception
- If failed.public static org.apache.hadoop.fs.Path copyLocalToHdfs(org.apache.hadoop.fs.FileSystem fs, String src, String dst) throws Exception
fs
- File system.src
- Source path.dst
- Destination path.Exception
public static ByteBuffer createTokenBuffer(org.apache.hadoop.security.Credentials creds) throws IOException
Credentials
.creds
- The credentials.IOException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024