Tabnine Logo
ThriftServerRunner.run
Code IndexAdd Tabnine to your IDE (free)

How to use
run
method
in
org.apache.hadoop.hbase.thrift.ThriftServerRunner

Best Java code snippets using org.apache.hadoop.hbase.thrift.ThriftServerRunner.run (Showing top 4 results out of 315)

origin: co.cask.hbase/hbase

@Override
public void run() {
 serverRunner.run();
}
origin: org.apache.hbase/hbase-thrift

/**
 * Start up or shuts down the Thrift server, depending on the arguments.
 * @param args
 */
 void doMain(final String[] args) throws Exception {
  processOptions(args);
  serverRunner = new ThriftServerRunner(conf);
  // Put up info server.
  int port = conf.getInt("hbase.thrift.info.port", 9095);
  if (port >= 0) {
   conf.setLong("startcode", System.currentTimeMillis());
   String a = conf.get("hbase.thrift.info.bindAddress", "0.0.0.0");
   infoServer = new InfoServer("thrift", a, port, false, conf);
   infoServer.setAttribute("hbase.conf", conf);
   infoServer.start();
  }
  serverRunner.run();
}
origin: com.aliyun.hbase/alihbase-thrift

/**
 * Start up or shuts down the Thrift server, depending on the arguments.
 * @param args
 */
 void doMain(final String[] args) throws Exception {
  processOptions(args);
  serverRunner = new ThriftServerRunner(conf);
  // Put up info server.
  int port = conf.getInt("hbase.thrift.info.port", 9095);
  if (port >= 0) {
   conf.setLong("startcode", System.currentTimeMillis());
   String a = conf.get("hbase.thrift.info.bindAddress", "0.0.0.0");
   infoServer = new InfoServer("thrift", a, port, false, conf);
   infoServer.setAttribute("hbase.conf", conf);
   infoServer.start();
  }
  serverRunner.run();
}
origin: co.cask.hbase/hbase

/**
 * Start up or shuts down the Thrift server, depending on the arguments.
 * @param args
 */
 void doMain(final String[] args) throws Exception {
  processOptions(args);
  // login the server principal (if using secure Hadoop)
  if (User.isSecurityEnabled() && User.isHBaseSecurityEnabled(conf)) {
   String machineName = Strings.domainNamePointerToHostName(
    DNS.getDefaultHost(conf.get("hbase.thrift.dns.interface", "default"),
     conf.get("hbase.thrift.dns.nameserver", "default")));
   User.login(conf, "hbase.thrift.keytab.file",
     "hbase.thrift.kerberos.principal", machineName);
  }
  serverRunner = new ThriftServerRunner(conf);
  // Put up info server.
  int port = conf.getInt("hbase.thrift.info.port", 9095);
  if (port >= 0) {
   conf.setLong("startcode", System.currentTimeMillis());
   String a = conf.get("hbase.thrift.info.bindAddress", "0.0.0.0");
   infoServer = new InfoServer("thrift", a, port, false, conf);
   infoServer.setAttribute("hbase.conf", conf);
   infoServer.start();
  }
  serverRunner.run();
}
org.apache.hadoop.hbase.thriftThriftServerRunnerrun

Popular methods of ThriftServerRunner

  • <init>
  • registerFilters
  • createExecutor
  • getBindAddress
  • shutdown
  • checkHttpSecurity
  • setupServer
    Setting up the thrift TServer

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Notification (javax.management)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
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