public class LlapDaemon extends org.apache.hadoop.service.CompositeService implements ContainerRunner, LlapDaemonMXBean
| Constructor and Description |
|---|
LlapDaemon(org.apache.hadoop.conf.Configuration daemonConf,
int numExecutors,
long executorMemoryBytes,
boolean ioEnabled,
boolean isDirectCache,
long ioMemoryBytes,
String[] localDirs,
int srvPort,
int mngPort,
int shufflePort,
int webPort,
String appName) |
| Modifier and Type | Method and Description |
|---|---|
long |
getExecutorMemoryPerInstance()
Gets llap daemon configured executor memory per instance.
|
Set<String> |
getExecutorsStatus()
Executor states.
|
long |
getIoMemoryPerInstance()
Gets llap daemon configured io memory per instance.
|
InetSocketAddress |
getListenerAddress() |
String |
getLocalDirs()
CSV list of local directories
|
long |
getMaxJvmMemory()
Gets max available jvm memory.
|
int |
getNumActive()
Gets the number of active executors.
|
int |
getNumExecutors()
Gets the number of executors.
|
long |
getNumSubmissions() |
int |
getRpcPort()
Gets the rpc port.
|
int |
getShufflePort()
Gets the shuffle port.
|
static long |
getTotalHeapSize() |
boolean |
isIoEnabled()
Checks if Llap IO is enabled
|
static void |
main(String[] args) |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryCompleteResponseProto |
queryComplete(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.QueryCompleteRequestProto request) |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
void |
shutdown() |
org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SourceStateUpdatedResponseProto |
sourceStateUpdated(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.SourceStateUpdatedRequestProto request) |
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 long getTotalHeapSize()
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.CompositeServiceExceptionpublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.CompositeServiceExceptionpublic void shutdown()
public 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 long getNumSubmissions()
public InetSocketAddress getListenerAddress()
public int getRpcPort()
LlapDaemonMXBeangetRpcPort in interface LlapDaemonMXBeanpublic int getNumExecutors()
LlapDaemonMXBeangetNumExecutors in interface LlapDaemonMXBeanpublic int getShufflePort()
LlapDaemonMXBeangetShufflePort in interface LlapDaemonMXBeanpublic String getLocalDirs()
LlapDaemonMXBeangetLocalDirs in interface LlapDaemonMXBeanpublic Set<String> getExecutorsStatus()
LlapDaemonMXBeangetExecutorsStatus in interface LlapDaemonMXBeanpublic int getNumActive()
LlapDaemonMXBeangetNumActive in interface LlapDaemonMXBeanpublic long getExecutorMemoryPerInstance()
LlapDaemonMXBeangetExecutorMemoryPerInstance in interface LlapDaemonMXBeanpublic long getIoMemoryPerInstance()
LlapDaemonMXBeangetIoMemoryPerInstance in interface LlapDaemonMXBeanpublic boolean isIoEnabled()
LlapDaemonMXBeanisIoEnabled in interface LlapDaemonMXBeanpublic long getMaxJvmMemory()
LlapDaemonMXBeangetMaxJvmMemory in interface LlapDaemonMXBeanCopyright © 2019 The Apache Software Foundation. All Rights Reserved.