congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CuratorService.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.hadoop.registry.client.impl.zk.CuratorService

Best Java code snippets using org.apache.hadoop.registry.client.impl.zk.CuratorService.toString (Showing top 4 results out of 315)

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

  ZOOKEEPER_CLIENT_CONTEXT);
curator = startCuratorServiceInstance("ZK", true);
LOG.info(curator.toString());
origin: io.hops/hadoop-yarn-registry

  ZOOKEEPER_CLIENT_CONTEXT);
curator = startCuratorServiceInstance("ZK", true);
LOG.info(curator.toString());
origin: io.hops/hadoop-yarn-registry

/**
 * test that ZK can write as itself
 * @throws Throwable
 */
@Test
public void testZookeeperCanWrite() throws Throwable {
 System.setProperty("curator-log-events", "true");
 startSecureZK();
 CuratorService curator = null;
 LoginContext login = login(ZOOKEEPER_LOCALHOST,
   ZOOKEEPER_CLIENT_CONTEXT,
   keytab_zk);
 try {
  logLoginDetails(ZOOKEEPER, login);
  RegistrySecurity.setZKSaslClientProperties(ZOOKEEPER,
                       ZOOKEEPER_CLIENT_CONTEXT);
  curator = startCuratorServiceInstance("ZK", true);
  LOG.info(curator.toString());
  addToTeardown(curator);
  curator.zkMkPath("/", CreateMode.PERSISTENT, false,
    RegistrySecurity.WorldReadWriteACL);
  curator.zkList("/");
  curator.zkMkPath("/zookeeper", CreateMode.PERSISTENT, false,
    RegistrySecurity.WorldReadWriteACL);
 } finally {
  logout(login);
  ServiceOperations.stop(curator);
 }
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * test that ZK can write as itself
 * @throws Throwable
 */
@Test
public void testZookeeperCanWrite() throws Throwable {
 System.setProperty("curator-log-events", "true");
 startSecureZK();
 CuratorService curator = null;
 LoginContext login = login(ZOOKEEPER_LOCALHOST,
   ZOOKEEPER_CLIENT_CONTEXT,
   keytab_zk);
 try {
  logLoginDetails(ZOOKEEPER, login);
  RegistrySecurity.setZKSaslClientProperties(ZOOKEEPER,
                       ZOOKEEPER_CLIENT_CONTEXT);
  curator = startCuratorServiceInstance("ZK", true);
  LOG.info(curator.toString());
  addToTeardown(curator);
  curator.zkMkPath("/", CreateMode.PERSISTENT, false,
    RegistrySecurity.WorldReadWriteACL);
  curator.zkList("/");
  curator.zkMkPath("/zookeeper", CreateMode.PERSISTENT, false,
    RegistrySecurity.WorldReadWriteACL);
 } finally {
  logout(login);
  ServiceOperations.stop(curator);
 }
}
org.apache.hadoop.registry.client.impl.zkCuratorServicetoString

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
  • <init>
    Construct the service.
  • 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
  • checkServiceLive,
  • createCurator,
  • createEnsembleProvider,
  • createFullPath,
  • getConfig,
  • getName,
  • getRegistrySecurity,
  • getServiceState,
  • init,
  • isInState

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Best IntelliJ 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