org.apache.hadoop.hdfs.server.datanode.DataNode.checkSecureConfig()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.apache.hadoop.hdfs.server.datanode.DataNode.checkSecureConfig()方法的一些代码示例,展示了DataNode.checkSecureConfig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataNode.checkSecureConfig()方法的具体详情如下:
包路径:org.apache.hadoop.hdfs.server.datanode.DataNode
类名称:DataNode
方法名:checkSecureConfig

DataNode.checkSecureConfig介绍

[英]Checks if the DataNode has a secure configuration if security is enabled. There are 2 possible configurations that are considered secure: 1. The server has bound to privileged ports for RPC and HTTP via SecureDataNodeStarter. 2. The configuration enables SASL on DataTransferProtocol and HTTPS (no plain HTTP) for the HTTP server. The SASL handshake guarantees authentication of the RPC server before a client transmits a secret, such as a block access token. Similarly, SSL guarantees authentication of the HTTP server before a client transmits a secret, such as a delegation token. It is not possible to run with both privileged ports and SASL on DataTransferProtocol. For backwards-compatibility, the connection logic must check if the target port is a privileged port, and if so, skip the SASL handshake.
[中]如果启用了安全性,则检查DataNode是否具有安全配置。有两种可能的配置被认为是安全的:1。服务器已通过SecureDataNodeStarter绑定到RPC和HTTP的特权端口。2.该配置启用DataTransferProtocol上的SASL和HTTP服务器的HTTPS(无普通HTTP)。SASL握手保证在客户端传输秘密(如块访问令牌)之前对RPC服务器进行身份验证。类似地,SSL保证在客户端传输秘密(如委托令牌)之前对HTTP服务器进行身份验证。无法在DataTransferProtocol上同时使用特权端口和SASL运行。为了向后兼容,连接逻辑必须检查目标端口是否为特权端口,如果是,则跳过SASL握手。

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-hdfs

checkSecureConfig(dnConf, getConf(), resources);

代码示例来源:origin: ch.cern.hadoop/hadoop-hdfs

checkSecureConfig(dnConf, conf, resources);

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

checkSecureConfig(dnConf, conf, resources);

相关文章

DataNode类方法