public class CartesianProductVertexManager
extends org.apache.tez.dag.api.VertexManagerPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
TEZ_CARTESIAN_PRODUCT_ENABLE_GROUPING
Whether to disable grouping in fair cartesian product
If this is set to true, it's best to set "tez.cartesian-product.num-partitions" to 1 to avoid
unnecessary overhead caused by multiple partitions.
|
static boolean |
TEZ_CARTESIAN_PRODUCT_ENABLE_GROUPING_DEFAULT |
static String |
TEZ_CARTESIAN_PRODUCT_GROUPING_FRACTION
If every source vertex has this percents of tasks completed and generate some output,
we can begin auto grouping.
|
static String |
TEZ_CARTESIAN_PRODUCT_MAX_PARALLELISM
Max parallelism, for fair cartesian product only.
|
static int |
TEZ_CARTESIAN_PRODUCT_MAX_PARALLELISM_DEFAULT |
static String |
TEZ_CARTESIAN_PRODUCT_MIN_OPS_PER_WORKER
Min cartesian product operations per worker, for fair cartesian product only.
|
static long |
TEZ_CARTESIAN_PRODUCT_MIN_OPS_PER_WORKER_DEFAULT |
static String |
TEZ_CARTESIAN_PRODUCT_NUM_PARTITIONS
Num partitions as int value, for fair cartesian product only.
|
static String |
TEZ_CARTESIAN_PRODUCT_SLOW_START_MAX_FRACTION
Schedule all tasks when the fraction of finished cartesian product source tasks reach this value
|
static float |
TEZ_CARTESIAN_PRODUCT_SLOW_START_MAX_FRACTION_DEFAULT |
static String |
TEZ_CARTESIAN_PRODUCT_SLOW_START_MIN_FRACTION
Begin scheduling task when the fraction of finished cartesian product source tasks reaches
this value
|
static float |
TEZ_CARTESIAN_PRODUCT_SLOW_START_MIN_FRACTION_DEFAULT |
| Constructor and Description |
|---|
CartesianProductVertexManager(org.apache.tez.dag.api.VertexManagerPluginContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.tez.runtime.library.cartesianproduct.CartesianProductVertexManagerReal |
getVertexManagerReal() |
void |
initialize() |
void |
onRootVertexInitialized(String inputName,
org.apache.tez.dag.api.InputDescriptor inputDescriptor,
List<org.apache.tez.runtime.api.Event> events)
Currently direct input to cartesian product vertex is not supported
|
void |
onSourceTaskCompleted(org.apache.tez.runtime.api.TaskAttemptIdentifier attempt) |
void |
onVertexManagerEventReceived(org.apache.tez.runtime.api.events.VertexManagerEvent vmEvent)
no op currently, will be used for locality based optimization in future
|
void |
onVertexStarted(List<org.apache.tez.runtime.api.TaskAttemptIdentifier> completions) |
void |
onVertexStateUpdated(org.apache.tez.dag.api.event.VertexStateUpdate stateUpdate) |
public static final String TEZ_CARTESIAN_PRODUCT_SLOW_START_MIN_FRACTION
public static final float TEZ_CARTESIAN_PRODUCT_SLOW_START_MIN_FRACTION_DEFAULT
public static final String TEZ_CARTESIAN_PRODUCT_SLOW_START_MAX_FRACTION
public static final float TEZ_CARTESIAN_PRODUCT_SLOW_START_MAX_FRACTION_DEFAULT
public static final String TEZ_CARTESIAN_PRODUCT_NUM_PARTITIONS
public static final String TEZ_CARTESIAN_PRODUCT_ENABLE_GROUPING
public static final boolean TEZ_CARTESIAN_PRODUCT_ENABLE_GROUPING_DEFAULT
public static final String TEZ_CARTESIAN_PRODUCT_GROUPING_FRACTION
public static final String TEZ_CARTESIAN_PRODUCT_MAX_PARALLELISM
public static final int TEZ_CARTESIAN_PRODUCT_MAX_PARALLELISM_DEFAULT
public static final String TEZ_CARTESIAN_PRODUCT_MIN_OPS_PER_WORKER
public static final long TEZ_CARTESIAN_PRODUCT_MIN_OPS_PER_WORKER_DEFAULT
public CartesianProductVertexManager(org.apache.tez.dag.api.VertexManagerPluginContext context)
public void initialize()
throws Exception
initialize in class org.apache.tez.dag.api.VertexManagerPluginExceptionprotected org.apache.tez.runtime.library.cartesianproduct.CartesianProductVertexManagerReal getVertexManagerReal()
public void onVertexManagerEventReceived(org.apache.tez.runtime.api.events.VertexManagerEvent vmEvent)
throws Exception
onVertexManagerEventReceived in class org.apache.tez.dag.api.VertexManagerPluginvmEvent - Exceptionpublic void onRootVertexInitialized(String inputName, org.apache.tez.dag.api.InputDescriptor inputDescriptor, List<org.apache.tez.runtime.api.Event> events) throws Exception
onRootVertexInitialized in class org.apache.tez.dag.api.VertexManagerPlugininputName - inputDescriptor - events - Exceptionpublic void onVertexStarted(List<org.apache.tez.runtime.api.TaskAttemptIdentifier> completions) throws Exception
onVertexStarted in class org.apache.tez.dag.api.VertexManagerPluginExceptionpublic void onVertexStateUpdated(org.apache.tez.dag.api.event.VertexStateUpdate stateUpdate)
throws Exception
onVertexStateUpdated in class org.apache.tez.dag.api.VertexManagerPluginExceptionCopyright © 2017 Apache Software Foundation. All rights reserved.