public class ContainerRunnerImpl extends org.apache.hadoop.service.CompositeService implements ContainerRunner, FragmentCompletionHandler, QueryFailedHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
THREAD_NAME_FORMAT_PREFIX |
| Constructor and Description |
|---|
ContainerRunnerImpl(org.apache.hadoop.conf.Configuration conf,
int numExecutors,
int waitQueueSize,
boolean enablePreemption,
String[] localDirsBase,
AtomicReference<Integer> localShufflePort,
AtomicReference<InetSocketAddress> localAddress,
long totalMemoryAvailableBytes,
LlapDaemonExecutorMetrics metrics,
AMReporter amReporter,
ClassLoader classLoader,
DaemonId daemonId,
UgiFactory fsUgiFactory,
SocketFactory socketFactory) |
| Modifier and Type | Method and Description |
|---|---|
static String |
constructUniqueQueryId(String queryId,
int dagIndex) |
void |
fragmentComplete(QueryFragmentInfo fragmentInfo) |
Set<String> |
getExecutorStatus() |
int |
getNumActive() |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryCompleteResponseProto |
queryComplete(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryCompleteRequestProto request) |
void |
queryFailed(QueryIdentifier queryIdentifier) |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
protected void |
serviceStop() |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SourceStateUpdatedResponseProto |
sourceStateUpdated(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SourceStateUpdatedRequestProto request) |
static String |
stringifySubmitRequest(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SubmitWorkRequestProto request,
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SignableVertexSpec vertex) |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SubmitWorkResponseProto |
submitWork(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SubmitWorkRequestProto request) |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.TerminateFragmentResponseProto |
terminateFragment(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.TerminateFragmentRequestProto request) |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.UpdateFragmentResponseProto |
updateFragment(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.UpdateFragmentRequestProto request) |
addIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String THREAD_NAME_FORMAT_PREFIX
public ContainerRunnerImpl(org.apache.hadoop.conf.Configuration conf,
int numExecutors,
int waitQueueSize,
boolean enablePreemption,
String[] localDirsBase,
AtomicReference<Integer> localShufflePort,
AtomicReference<InetSocketAddress> localAddress,
long totalMemoryAvailableBytes,
LlapDaemonExecutorMetrics metrics,
AMReporter amReporter,
ClassLoader classLoader,
DaemonId daemonId,
UgiFactory fsUgiFactory,
SocketFactory socketFactory)
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionpublic void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.CompositeServiceExceptionpublic org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SubmitWorkResponseProto submitWork(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SubmitWorkRequestProto request)
throws IOException
submitWork in interface ContainerRunnerIOExceptionpublic org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SourceStateUpdatedResponseProto sourceStateUpdated(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SourceStateUpdatedRequestProto request)
throws IOException
sourceStateUpdated in interface ContainerRunnerIOExceptionpublic org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryCompleteResponseProto queryComplete(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryCompleteRequestProto request)
throws IOException
queryComplete in interface ContainerRunnerIOExceptionpublic org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.TerminateFragmentResponseProto terminateFragment(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.TerminateFragmentRequestProto request)
throws IOException
terminateFragment in interface ContainerRunnerIOExceptionpublic org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.UpdateFragmentResponseProto updateFragment(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.UpdateFragmentRequestProto request)
throws IOException
updateFragment in interface ContainerRunnerIOExceptionpublic static String stringifySubmitRequest(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SubmitWorkRequestProto request, org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SignableVertexSpec vertex)
public void fragmentComplete(QueryFragmentInfo fragmentInfo)
fragmentComplete in interface FragmentCompletionHandlerpublic void queryFailed(QueryIdentifier queryIdentifier)
queryFailed in interface QueryFailedHandlerpublic int getNumActive()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.