public class SparkRuntimeContextConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HCONF_ATTR_CLUSTER_MODE
Configuration key for boolean value to tell whether Spark program is executed on a cluster or not.
|
static String |
HCONF_ATTR_CREDENTIALS_UPDATE_INTERVAL_MS |
Modifier and Type | Method and Description |
---|---|
ApplicationSpecification |
getApplicationSpecification() |
Configuration |
getConfiguration()
Returns the configuration.
|
String |
getPluginArchive() |
co.cask.cdap.proto.id.ProgramId |
getProgramId() |
ProgramOptions |
getProgramOptions() |
WorkflowProgramInfo |
getWorkflowProgramInfo() |
boolean |
isLocal()
Returns true if in local mode.
|
SparkRuntimeContextConfig |
set(SparkRuntimeContext context,
File pluginArchive)
Sets configurations based on the given context.
|
public static final String HCONF_ATTR_CLUSTER_MODE
public static final String HCONF_ATTR_CREDENTIALS_UPDATE_INTERVAL_MS
public Configuration getConfiguration()
public boolean isLocal()
public SparkRuntimeContextConfig set(SparkRuntimeContext context, @Nullable File pluginArchive)
public ApplicationSpecification getApplicationSpecification()
ApplicationSpecification
stored in the configuration.public co.cask.cdap.proto.id.ProgramId getProgramId()
ProgramId
stored in the configuration.public ProgramOptions getProgramOptions()
ProgramOptions
stored in the configuration.@Nullable public WorkflowProgramInfo getWorkflowProgramInfo()
WorkflowProgramInfo
if it is running inside Workflow or null
if not.Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.