Tabnine Logo
org.apache.hadoop.registry.client.impl.zk
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * Clear all write accessors.
 */
public void clearWriteAccessors() {
 getRegistrySecurity().resetDigestACLs();
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Get the aggregate set of ACLs the client should use
 * to create directories
 * @return the ACL list
 */
public List<ACL> getClientAcls() {
 return getRegistrySecurity().getClientACLs();
}
origin: io.hops/hadoop-yarn-registry

 @Override
 public String toString() {
  return aclsToString(acls);
 }
}
origin: org.apache.hadoop/hadoop-yarn-registry

@Override
public boolean mknode(String path, boolean createParents) throws IOException {
 validatePath(path);
 return zkMkPath(path, CreateMode.PERSISTENT, createParents, getClientAcls());
}
origin: io.hops/hadoop-yarn-registry

 @Override
 public ACL run() throws Exception {
  return registrySecurity.createSaslACLFromCurrentUser(0);
 }
});
origin: io.hops/hadoop-yarn-registry

@Override
public List<String> list(String path) throws IOException {
 validatePath(path);
 return zkList(path);
}
origin: io.hops/hadoop-yarn-registry

@Override
public void delete(String path, boolean recursive) throws IOException {
 validatePath(path);
 zkDelete(path, recursive, null);
}
origin: io.hops/hadoop-yarn-registry

/**
 * Create a Digest ID from an id:pass pair
 * @param id ID
 * @param password password
 * @return an ID
 * @throws IOException
 */
public Id toDigestId(String id, String password) throws IOException {
 return toDigestId(digest(id, password));
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Flag to indicate whether or not the registry is secure.
 * Valid once the service is inited.
 *
 * @return service security policy
 */
public boolean isSecure() {
 return registrySecurity.isSecureRegistry();
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Generate a base-64 encoded digest of the idPasswordPair pair
 * @param id ID
 * @param password pass
 * @return a string that can be used for authentication
 * @throws IOException
 */
public String digest(String id, String password) throws IOException {
 return digest(id + ":" + password);
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Verify a path exists.
 *
 * @param path path of operation
 * @throws PathNotFoundException if the path is absent
 * @throws IOException
 */
public String zkPathMustExist(String path) throws IOException {
 zkStat(path);
 return path;
}
origin: io.hops/hadoop-yarn-registry

/**
 * Create an IOE when an operation fails
 * @param path path of operation
 * @param operation operation attempted
 * @param exception caught the exception caught
 * @return an IOE to throw that contains the path and operation details.
 */
protected IOException operationFailure(String path,
  String operation,
  Exception exception) {
 return operationFailure(path, operation, exception, null);
}
origin: org.apache.hadoop/hadoop-yarn-registry

/**
 * Return a path dumper instance which can do a full dump
 * of the registry tree in its <code>toString()</code>
 * operation.
 *
 * @param verbose verbose flag - includes more details (such as ACLs)
 * @return a class to dump the registry
 */
public ZKPathDumper dumpPath(boolean verbose) {
 return new ZKPathDumper(curator, registryRoot, verbose);
}
origin: io.hops/hadoop-yarn-registry

/**
 * Clear all write accessors
 */
public void clearWriteAccessors() {
 getRegistrySecurity().resetDigestACLs();
}
origin: io.hops/hadoop-yarn-registry

/**
 * Get the aggregate set of ACLs the client should use
 * to create directories
 * @return the ACL list
 */
public List<ACL> getClientAcls() {
 return getRegistrySecurity().getClientACLs();
}
origin: org.apache.hadoop/hadoop-yarn-registry

 @Override
 public ACL run() throws Exception {
  return registrySecurity.createSaslACLFromCurrentUser(0);
 }
});
origin: org.apache.hadoop/hadoop-yarn-registry

 @Override
 public String toString() {
  return aclsToString(acls);
 }
}
origin: io.hops/hadoop-yarn-registry

/**
 * Flag to indicate whether or not the registry is secure.
 * Valid once the service is inited.
 * @return service security policy
 */
public boolean isSecure() {
 return registrySecurity.isSecureRegistry();
}
origin: io.hops/hadoop-yarn-registry

/**
 * Generate a base-64 encoded digest of the idPasswordPair pair
 * @param id ID
 * @param password pass
 * @return a string that can be used for authentication
 * @throws IOException
 */
public String digest(String id, String password) throws IOException {
 return digest(id + ":" + password);
}
origin: io.hops/hadoop-yarn-registry

/**
 * Verify a path exists
 * @param path path of operation
 * @throws PathNotFoundException if the path is absent
 * @throws IOException
 */
public String zkPathMustExist(String path) throws IOException {
 zkStat(path);
 return path;
}
org.apache.hadoop.registry.client.impl.zk

Most used classes

  • CuratorService
    This service binds to Zookeeper via Apache Curator. It is more generic than just the YARN service re
  • RegistrySecurity$UgiInfo
    On demand string-ifier for UGI with extra details
  • RegistrySecurity
    Implement the registry security ... a self contained service for testability. This class contains:
  • ZKPathDumper
    This class dumps a registry tree to a string. It does this in the toString() method, so it can be u
  • BindingInformation
    Binding information provided by a RegistryBindingSource
  • RegistryOperationsService,
  • RegistrySecurity$AclListInfo,
  • PathListener,
  • RegistrySecurity$JaasConfiguration
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