Tabnine Logo
ThriftHttpCLIService.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hive.service.cli.thrift.ThriftHttpCLIService
constructor

Best Java code snippets using org.apache.hive.service.cli.thrift.ThriftHttpCLIService.<init> (Showing top 6 results out of 315)

origin: apache/hive

 thriftCLIService = new ThriftHttpCLIService(cliService, oomHook);
} else {
 thriftCLIService = new ThriftBinaryCLIService(cliService, oomHook);
origin: com.github.hyukjinkwon/hive-service

@Override
public synchronized void init(HiveConf hiveConf) {
 cliService = new CLIService(this);
 addService(cliService);
 if (isHTTPTransportMode(hiveConf)) {
  thriftCLIService = new ThriftHttpCLIService(cliService);
 } else {
  thriftCLIService = new ThriftBinaryCLIService(cliService);
 }
 addService(thriftCLIService);
 super.init(hiveConf);
 // Add a shutdown hook for catching SIGTERM & SIGINT
 final HiveServer2 hiveServer2 = this;
 Runtime.getRuntime().addShutdownHook(new Thread() {
  @Override
  public void run() {
   hiveServer2.stop();
  }
 });
}
origin: org.spark-project.hive/hive-service

@Override
public synchronized void init(HiveConf hiveConf) {
 cliService = new CLIService(this);
 addService(cliService);
 if (isHTTPTransportMode(hiveConf)) {
  thriftCLIService = new ThriftHttpCLIService(cliService);
 } else {
  thriftCLIService = new ThriftBinaryCLIService(cliService);
 }
 addService(thriftCLIService);
 super.init(hiveConf);
 // Add a shutdown hook for catching SIGTERM & SIGINT
 final HiveServer2 hiveServer2 = this;
 Runtime.getRuntime().addShutdownHook(new Thread() {
  @Override
  public void run() {
   hiveServer2.stop();
  }
 });
}
origin: org.apache.spark/spark-hive-thriftserver

@Override
public synchronized void init(HiveConf hiveConf) {
 cliService = new CLIService(this);
 addService(cliService);
 if (isHTTPTransportMode(hiveConf)) {
  thriftCLIService = new ThriftHttpCLIService(cliService);
 } else {
  thriftCLIService = new ThriftBinaryCLIService(cliService);
 }
 addService(thriftCLIService);
 super.init(hiveConf);
 // Add a shutdown hook for catching SIGTERM & SIGINT
 // this must be higher than the Hadoop Filesystem priority of 10,
 // which the default priority is.
 // The signature of the callback must match that of a scala () -> Unit
 // function
 ShutdownHookManager.addShutdownHook(
   new AbstractFunction0<BoxedUnit>() {
    public BoxedUnit apply() {
     try {
      LOG.info("Hive Server Shutdown hook invoked");
      stop();
     } catch (Throwable e) {
      LOG.warn("Ignoring Exception while stopping Hive Server from shutdown hook",
        e);
     }
     return BoxedUnit.UNIT;
    }
   });
}
origin: org.apache.spark/spark-hive-thriftserver_2.11

@Override
public synchronized void init(HiveConf hiveConf) {
 cliService = new CLIService(this);
 addService(cliService);
 if (isHTTPTransportMode(hiveConf)) {
  thriftCLIService = new ThriftHttpCLIService(cliService);
 } else {
  thriftCLIService = new ThriftBinaryCLIService(cliService);
 }
 addService(thriftCLIService);
 super.init(hiveConf);
 // Add a shutdown hook for catching SIGTERM & SIGINT
 // this must be higher than the Hadoop Filesystem priority of 10,
 // which the default priority is.
 // The signature of the callback must match that of a scala () -> Unit
 // function
 ShutdownHookManager.addShutdownHook(
   new AbstractFunction0<BoxedUnit>() {
    public BoxedUnit apply() {
     try {
      LOG.info("Hive Server Shutdown hook invoked");
      stop();
     } catch (Throwable e) {
      LOG.warn("Ignoring Exception while stopping Hive Server from shutdown hook",
        e);
     }
     return BoxedUnit.UNIT;
    }
   });
}
origin: org.apache.hive/hive-service

 thriftCLIService = new ThriftHttpCLIService(cliService, oomHook);
} else {
 thriftCLIService = new ThriftBinaryCLIService(cliService, oomHook);
org.apache.hive.service.cli.thriftThriftHttpCLIService<init>

Popular methods of ThriftHttpCLIService

  • getHttpPath
    The config parameter can be like "path", "/path", "/path/", "path/*", "/path1/path2/*" and so on. ht

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now