Skip to content

필사 모드: Secured (Kerberized) ZooKeeper クラスターの構築方法

日本語
0%
정확도 0%
💡 왼쪽 원문을 읽으면서 오른쪽에 따라 써보세요. Tab 키로 힌트를 받을 수 있습니다.
원문 렌더가 준비되기 전까지 텍스트 가이드로 표시합니다.

Overview

ZooKeeperにKerberosセキュリティを適用する方法を解説します。

Configurationの変更

The number of milliseconds of each tick

tickTime=2000

The number of ticks that the initial

synchronization phase can take

initLimit=10

The number of ticks that can pass between

sending a request and getting an acknowledgement

syncLimit=5

the directory where the snapshot is stored.

do not use /tmp for storage, /tmp here is just

example sakes.

dataDir=/var/zookeeper

the port at which the clients will connect

clientPort=2181

server.1=hadoop1.mysite.com:2888:3888

server.2=hadoop2.mysite.com:2888:3888

server.3=hadoop3.mysite.com:2888:3888

quorum.auth.enableSasl=true

quorum.cnxn.threads.size=20

authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider

kerberos.removeHostFromPrincipal=true

kerberos.removeRealmFromPrincipal=true

quorum.auth.learnerRequireSasl=true

quorum.auth.serverRequireSasl=true

quorum.auth.kerberos.servicePrincipal=zookeeper/_HOST

#autopurge.purgeInterval=1

Server {

com.sun.security.auth.module.Krb5LoginModule required

useKeyTab=true

keyTab="/etc/hdfs.keytab"

storeKey=true

useTicketCache=false

principal="zookeeper/hadoop1.mysite.com@CHAOS.ORDER.COM";

};

QuorumServer {

com.sun.security.auth.module.Krb5LoginModule required

useKeyTab=true

keyTab="/etc/hdfs.keytab"

storeKey=true

useTicketCache=false

principal="zookeeper/hadoop1.mysite.com@CHAOS.ORDER.COM";

};

QuorumLearner {

com.sun.security.auth.module.Krb5LoginModule required

useKeyTab=true

keyTab="/etc/hdfs.keytab"

storeKey=true

useTicketCache=false

principal="zookeeper/hadoop1.mysite.com@CHAOS.ORDER.COM";

};

export JVMFLAGS="-Djava.security.auth.login.config=${JAAS_CONF_PATH}"

ZooKeeperの再起動

上記のように設定を変更した後、ZooKeeperを再起動するとセキュアに動作するようになります。

クイズ

Q1: 「Secured (Kerberized) ZooKeeper クラスターの構築方法」の主なトピックは何ですか?

ZooKeeperにKerberosセキュリティを適用する方法を解説します。

ZooKeeperにKerberosセキュリティを適用する方法を解説します。

記事全体で議論されている実践的な例やパターンを参考にしてください。

현재 단락 (1/47)

ZooKeeperにKerberosセキュリティを適用する方法を解説します。

작성 글자: 0원문 글자: 1,853작성 단락: 0/47