Codota Logo
DNConf.getSaslPropsResolver
Code IndexAdd Codota to your IDE (free)

How to use
getSaslPropsResolver
method
in
org.apache.hadoop.hdfs.server.datanode.DNConf

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.DNConf.getSaslPropsResolver (Showing top 9 results out of 315)

  • Common ways to obtain DNConf
private void myMethod () {
DNConf d =
  • Codota IconDataNode dataNode;dataNode.getDnConf()
  • Codota IconConfiguration conf;new DNConf(conf)
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-hdfs

  + "peer = {}, datanodeId = {}", peer, datanodeId);
 return new IOStreamPair(underlyingIn, underlyingOut);
} else if (dnConf.getSaslPropsResolver() != null) {
 LOG.debug(
  "SASL server doing general handshake for peer = {}, datanodeId = {}",
origin: org.apache.hadoop/hadoop-hdfs

SaslPropertiesResolver saslPropsResolver = dnConf.getSaslPropsResolver();
if (saslPropsResolver != null &&
  DFSUtil.getHttpPolicy(conf) == HttpConfig.Policy.HTTPS_ONLY) {
origin: org.apache.hadoop/hadoop-hdfs

/**
 * Receives SASL negotiation for general-purpose handshake.
 *
 * @param peer connection peer
 * @param underlyingOut connection output stream
 * @param underlyingIn connection input stream
 * @return new pair of streams, wrapped after SASL negotiation
 * @throws IOException for any error
 */
private IOStreamPair getSaslStreams(Peer peer, OutputStream underlyingOut,
  InputStream underlyingIn) throws IOException {
 if (peer.hasSecureChannel() ||
   dnConf.getTrustedChannelResolver().isTrusted(getPeerAddress(peer))) {
  return new IOStreamPair(underlyingIn, underlyingOut);
 }
 SaslPropertiesResolver saslPropsResolver = dnConf.getSaslPropsResolver();
 Map<String, String> saslProps = saslPropsResolver.getServerProperties(
  getPeerAddress(peer));
 CallbackHandler callbackHandler = new SaslServerCallbackHandler(
  new PasswordFunction() {
   @Override
   public char[] apply(String userName) throws IOException {
    return buildServerPassword(userName);
   }
 });
 return doSaslHandshake(peer, underlyingOut, underlyingIn, saslProps,
   callbackHandler);
}
origin: io.prestosql.hadoop/hadoop-apache

 return;
SaslPropertiesResolver saslPropsResolver = dnConf.getSaslPropsResolver();
if (resources != null && saslPropsResolver == null) {
 return;
origin: ch.cern.hadoop/hadoop-hdfs

 return;
SaslPropertiesResolver saslPropsResolver = dnConf.getSaslPropsResolver();
if (resources != null && saslPropsResolver == null) {
 return;
origin: ch.cern.hadoop/hadoop-hdfs

  + "peer = {}, datanodeId = {}", peer, datanodeId);
 return new IOStreamPair(underlyingIn, underlyingOut);
} else if (dnConf.getSaslPropsResolver() != null) {
 LOG.debug(
  "SASL server doing general handshake for peer = {}, datanodeId = {}",
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Receives SASL negotiation for general-purpose handshake.
 *
 * @param peer connection peer
 * @param underlyingOut connection output stream
 * @param underlyingIn connection input stream
 * @return new pair of streams, wrapped after SASL negotiation
 * @throws IOException for any error
 */
private IOStreamPair getSaslStreams(Peer peer, OutputStream underlyingOut,
  InputStream underlyingIn) throws IOException {
 if (peer.hasSecureChannel() ||
   dnConf.getTrustedChannelResolver().isTrusted(getPeerAddress(peer))) {
  return new IOStreamPair(underlyingIn, underlyingOut);
 }
 SaslPropertiesResolver saslPropsResolver = dnConf.getSaslPropsResolver();
 Map<String, String> saslProps = saslPropsResolver.getServerProperties(
  getPeerAddress(peer));
 CallbackHandler callbackHandler = new SaslServerCallbackHandler(
  new PasswordFunction() {
   @Override
   public char[] apply(String userName) throws IOException {
    return buildServerPassword(userName);
   }
 });
 return doSaslHandshake(underlyingOut, underlyingIn, saslProps,
   callbackHandler);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Receives SASL negotiation for general-purpose handshake.
 *
 * @param peer connection peer
 * @param underlyingOut connection output stream
 * @param underlyingIn connection input stream
 * @return new pair of streams, wrapped after SASL negotiation
 * @throws IOException for any error
 */
private IOStreamPair getSaslStreams(Peer peer, OutputStream underlyingOut,
  InputStream underlyingIn) throws IOException {
 if (peer.hasSecureChannel() ||
   dnConf.getTrustedChannelResolver().isTrusted(getPeerAddress(peer))) {
  return new IOStreamPair(underlyingIn, underlyingOut);
 }
 SaslPropertiesResolver saslPropsResolver = dnConf.getSaslPropsResolver();
 Map<String, String> saslProps = saslPropsResolver.getServerProperties(
  getPeerAddress(peer));
 CallbackHandler callbackHandler = new SaslServerCallbackHandler(
  new PasswordFunction() {
   @Override
   public char[] apply(String userName) throws IOException {
    return buildServerPassword(userName);
   }
 });
 return doSaslHandshake(underlyingOut, underlyingIn, saslProps,
   callbackHandler);
}
origin: io.prestosql.hadoop/hadoop-apache

  + "peer = {}, datanodeId = {}", peer, datanodeId);
 return new IOStreamPair(underlyingIn, underlyingOut);
} else if (dnConf.getSaslPropsResolver() != null) {
 LOG.debug(
  "SASL server doing general handshake for peer = {}, datanodeId = {}",
org.apache.hadoop.hdfs.server.datanodeDNConfgetSaslPropsResolver

Javadoc

Returns the SaslPropertiesResolver configured for use with DataTransferProtocol, or null if not configured.

Popular methods of DNConf

  • <init>
  • getMinimumNameNodeVersion
  • getBpReadyTimeout
  • getConf
    Returns the configuration.
  • getEncryptDataTransfer
    Returns true if encryption enabled for DataTransferProtocol.
  • getEncryptionAlgorithm
    Returns encryption algorithm configured for DataTransferProtocol, or null if not configured.
  • getIgnoreSecurePortsForTesting
    Returns true if configuration is set to skip checking for proper port configuration in a secured clu
  • getMaxLockedMemory
  • getTrustedChannelResolver
    Returns the TrustedChannelResolver configured for use with DataTransferProtocol, or null if not conf
  • getXceiverStopTimeout
  • getTransferSocketRecvBufferSize
  • getTransferSocketSendBufferSize
  • getTransferSocketRecvBufferSize,
  • getTransferSocketSendBufferSize,
  • getAllowNonLocalLazyPersist,
  • getConnectToDnViaHostname,
  • getDataTransferServerTcpNoDelay,
  • getLifelineIntervalMs,
  • getMaxDataLength,
  • getSlowIoWarningThresholdMs,
  • getSocketTimeout

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now