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

How to use
org.apache.hadoop.registry.client.impl.zk.CuratorService
constructor

Best Java code snippets using org.apache.hadoop.registry.client.impl.zk.CuratorService.<init> (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-registry

@Test
public void testUseZKServiceForBinding() throws Throwable {
 CuratorService cs2 = new CuratorService("curator", zookeeper);
 cs2.init(new Configuration());
 cs2.start();
}
origin: io.hops/hadoop-yarn-registry

@Test
public void testUseZKServiceForBinding() throws Throwable {
 CuratorService cs2 = new CuratorService("curator", zookeeper);
 cs2.init(new Configuration());
 cs2.start();
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Start a curator service instance
 * @param name name
 * @param secure flag to indicate the cluster is secure
 * @return an inited and started curator service
 */
protected CuratorService startCuratorServiceInstance(String name,
  boolean secure) {
 Configuration clientConf = new Configuration();
 clientConf.set(KEY_REGISTRY_ZK_ROOT, "/");
 clientConf.setBoolean(KEY_REGISTRY_SECURE, secure);
 describe(LOG, "Starting Curator service");
 CuratorService curatorService = new CuratorService(name, secureZK);
 curatorService.init(clientConf);
 curatorService.start();
 LOG.info("Curator Binding {}",
   curatorService.bindingDiagnosticDetails());
 return curatorService;
}
origin: io.hops/hadoop-yarn-registry

/**
 * Start a curator service instance
 * @param name name
 * @param secure flag to indicate the cluster is secure
 * @return an inited and started curator service
 */
protected CuratorService startCuratorServiceInstance(String name,
  boolean secure) {
 Configuration clientConf = new Configuration();
 clientConf.set(KEY_REGISTRY_ZK_ROOT, "/");
 clientConf.setBoolean(KEY_REGISTRY_SECURE, secure);
 describe(LOG, "Starting Curator service");
 CuratorService curatorService = new CuratorService(name, secureZK);
 curatorService.init(clientConf);
 curatorService.start();
 LOG.info("Curator Binding {}",
   curatorService.bindingDiagnosticDetails());
 return curatorService;
}
origin: io.hops/hadoop-yarn-registry

/**
 * Create an instance
 */
protected void createCuratorService() throws IOException {
 curatorService = new CuratorService("curatorService");
 curatorService.init(createRegistryConfiguration());
 curatorService.start();
 rootACL = RegistrySecurity.WorldReadWriteACL;
 curatorService.maybeCreate("", CreateMode.PERSISTENT, rootACL, true);
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Create an instance
 */
protected void createCuratorService() throws IOException {
 curatorService = new CuratorService("curatorService");
 curatorService.init(createRegistryConfiguration());
 curatorService.start();
 rootACL = RegistrySecurity.WorldReadWriteACL;
 curatorService.maybeCreate("", CreateMode.PERSISTENT, rootACL, true);
}
org.apache.hadoop.registry.client.impl.zkCuratorService<init>

Javadoc

Create an instance using this service as the binding source (i.e. read configuration options from the registry)

Popular methods of CuratorService

  • zkPathExists
    Probe for a path existing
  • bindingDiagnosticDetails
    Get the binding diagnostics
  • dumpPath
    Return a path dumper instance which can do a full dump of the registry tree in its toString() operat
  • zkCreate
    Create a path with given data. byte[0] is used for a path without data
  • zkMkPath
    Create a directory. It is not an error if it already exists
  • zkUpdate
    Update the data for a path
  • addService
  • buildConnectionString
    Override point: get the connection string used to connect to the ZK service
  • buildSecurityDiagnostics
    Build the security diagnostics string
  • checkServiceLive
    Internal check that a service is in the live state
  • createCurator
    Create a new curator instance off the root path; using configuration options provided in the service
  • createEnsembleProvider
    Create the ensemble provider for this registry, by invoking RegistryBindingSource#supplyBindingInfor
  • createCurator,
  • createEnsembleProvider,
  • createFullPath,
  • getConfig,
  • getName,
  • getRegistrySecurity,
  • getServiceState,
  • init,
  • isInState

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • 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