Tabnine Logo
ThriftHttpCLIService
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/hive

 thriftCLIService = new ThriftHttpCLIService(cliService, oomHook);
} else {
 thriftCLIService = new ThriftBinaryCLIService(cliService, oomHook);
origin: apache/hive

final String httpPath = getHttpPath(hiveConf.getVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH));
origin: org.spark-project.hive/hive-service

  ServletContextHandler.SESSIONS);
context.setContextPath("/");
String httpPath = getHttpPath(hiveConf
  .getVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH));
httpServer.setHandler(context);
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: com.github.hyukjinkwon/hive-service

  ServletContextHandler.SESSIONS);
context.setContextPath("/");
String httpPath = getHttpPath(hiveConf
  .getVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH));
httpServer.setHandler(context);
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.hive/hive-service

final String httpPath = getHttpPath(hiveConf.getVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH));
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

  ServletContextHandler.SESSIONS);
context.setContextPath("/");
String httpPath = getHttpPath(hiveConf
  .getVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH));
httpServer.setHandler(context);
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.spark/spark-hive-thriftserver

  ServletContextHandler.SESSIONS);
context.setContextPath("/");
String httpPath = getHttpPath(hiveConf
  .getVar(HiveConf.ConfVars.HIVE_SERVER2_THRIFT_HTTP_PATH));
httpServer.setHandler(context);
origin: org.apache.hive/hive-service

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

Most used methods

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • startActivity (Activity)
  • Menu (java.awt)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTable (javax.swing)
  • From CI to AI: The AI layer in your organization
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