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 Path |
copyLocalToHdfs(FileSystem fs,
String src,
String dst) |
static ByteBuffer |
createTokenBuffer(Credentials creds)
Creates a ByteBuffer with serialized
Credentials. |
static LocalResource |
setupFile(Path file,
FileSystem fs,
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 LocalResource setupFile(Path file, FileSystem fs, LocalResourceType type) throws Exception
file - Path.fs - File system.type - Local resource type.Exception - If failed.public static Path copyLocalToHdfs(FileSystem fs, String src, String dst) throws Exception
fs - File system.src - Source path.dst - Destination path.Exceptionpublic static ByteBuffer createTokenBuffer(Credentials creds) throws IOException
Credentials.creds - The credentials.IOException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019