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

How to use
org.apache.hadoop.hdfs.server.balancer.KeyManager
constructor

Best Java code snippets using org.apache.hadoop.hdfs.server.balancer.KeyManager.<init> (Showing top 4 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

public NameNodeConnector(String name, URI nameNodeUri, Path idPath,
             List<Path> targetPaths, Configuration conf,
             int maxNotChangedIterations)
  throws IOException {
 this.nameNodeUri = nameNodeUri;
 this.idPath = idPath;
 this.targetPaths = targetPaths == null || targetPaths.isEmpty() ? Arrays
   .asList(new Path("/")) : targetPaths;
 this.maxNotChangedIterations = maxNotChangedIterations;
 this.namenode = NameNodeProxies.createProxy(conf, nameNodeUri,
   NamenodeProtocol.class).getProxy();
 this.client = NameNodeProxies.createProxy(conf, nameNodeUri,
   ClientProtocol.class, fallbackToSimpleAuth).getProxy();
 this.fs = (DistributedFileSystem)FileSystem.get(nameNodeUri, conf);
 final NamespaceInfo namespaceinfo = namenode.versionRequest();
 this.blockpoolID = namespaceinfo.getBlockPoolID();
 final FsServerDefaults defaults = fs.getServerDefaults(new Path("/"));
 this.keyManager = new KeyManager(blockpoolID, namenode,
   defaults.getEncryptDataTransfer(), conf);
 // if it is for test, we do not create the id file
 if (checkOtherInstanceRunning) {
  out = checkAndMarkRunning();
  if (out == null) {
   // Exit if there is another one running.
   throw new IOException("Another " + name + " is running.");
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

public NameNodeConnector(String name, URI nameNodeUri, Path idPath,
             List<Path> targetPaths, Configuration conf,
             int maxNotChangedIterations)
  throws IOException {
 this.nameNodeUri = nameNodeUri;
 this.idPath = idPath;
 this.targetPaths = targetPaths == null || targetPaths.isEmpty() ? Arrays
   .asList(new Path("/")) : targetPaths;
 this.maxNotChangedIterations = maxNotChangedIterations;
 this.namenode = NameNodeProxies.createProxy(conf, nameNodeUri,
   NamenodeProtocol.class).getProxy();
 this.client = NameNodeProxies.createProxy(conf, nameNodeUri,
   ClientProtocol.class, fallbackToSimpleAuth).getProxy();
 this.fs = (DistributedFileSystem)FileSystem.get(nameNodeUri, conf);
 final NamespaceInfo namespaceinfo = namenode.versionRequest();
 this.blockpoolID = namespaceinfo.getBlockPoolID();
 final FsServerDefaults defaults = fs.getServerDefaults(new Path("/"));
 this.keyManager = new KeyManager(blockpoolID, namenode,
   defaults.getEncryptDataTransfer(), conf);
 // if it is for test, we do not create the id file
 out = checkAndMarkRunning();
 if (out == null) {
  // Exit if there is another one running.
  throw new IOException("Another " + name + " is running.");
 }
}
origin: io.prestosql.hadoop/hadoop-apache

public NameNodeConnector(String name, URI nameNodeUri, Path idPath,
             List<Path> targetPaths, Configuration conf,
             int maxNotChangedIterations)
  throws IOException {
 this.nameNodeUri = nameNodeUri;
 this.idPath = idPath;
 this.targetPaths = targetPaths == null || targetPaths.isEmpty() ? Arrays
   .asList(new Path("/")) : targetPaths;
 this.maxNotChangedIterations = maxNotChangedIterations;
 this.namenode = NameNodeProxies.createProxy(conf, nameNodeUri,
   NamenodeProtocol.class).getProxy();
 this.client = NameNodeProxies.createProxy(conf, nameNodeUri,
   ClientProtocol.class, fallbackToSimpleAuth).getProxy();
 this.fs = (DistributedFileSystem)FileSystem.get(nameNodeUri, conf);
 final NamespaceInfo namespaceinfo = namenode.versionRequest();
 this.blockpoolID = namespaceinfo.getBlockPoolID();
 final FsServerDefaults defaults = fs.getServerDefaults(new Path("/"));
 this.keyManager = new KeyManager(blockpoolID, namenode,
   defaults.getEncryptDataTransfer(), conf);
 // if it is for test, we do not create the id file
 out = checkAndMarkRunning();
 if (out == null) {
  // Exit if there is another one running.
  throw new IOException("Another " + name + " is running.");
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

KeyManager keyManager = new KeyManager(blockPoolId, namenode,
  true, conf);
Whitebox.setInternalState(keyManager, "timer", fakeTimer);
org.apache.hadoop.hdfs.server.balancerKeyManager<init>

Popular methods of KeyManager

  • close
  • getAccessToken
    Get an access token for a block.
  • startBlockKeyUpdater
  • newDataEncryptionKey

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • String (java.lang)
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JOptionPane (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for Android Studio
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