public class HiveServer2 extends CompositeService
CompositeService.CompositeServiceShutdownHook
Service.STATE
Constructor and Description |
---|
HiveServer2() |
Modifier and Type | Method and Description |
---|---|
void |
init(HiveConf hiveConf)
Initialize the service.
|
static boolean |
isHTTPTransportMode(HiveConf hiveConf) |
boolean |
isRegisteredWithZooKeeper() |
static void |
main(String[] args) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
addService, getServices, removeService
getHiveConf, getName, getServiceState, getStartTime, register, unregister
public void init(HiveConf hiveConf)
AbstractService
Service.STATE.NOTINITED
to Service.STATE.INITED
unless the
operation failed and an exception was raised.init
in interface Service
init
in class CompositeService
public static boolean isHTTPTransportMode(HiveConf hiveConf)
public boolean isRegisteredWithZooKeeper()
public void start()
AbstractService
Service.STATE.INITED
to Service.STATE.STARTED
unless the
operation failed and an exception was raised.start
in interface Service
start
in class CompositeService
public void stop()
AbstractService
stop
in interface Service
stop
in class CompositeService
public static void main(String[] args)
Copyright © 2017 The Apache Software Foundation. All rights reserved.