「Confluent」:修訂間差異
跳至導覽
跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
(→設定) |
(→硬體) |
||
(未顯示同一使用者於中間所作的 31 次修訂) | |||
第1行: | 第1行: | ||
'''Confluent'''是一家公司,也是該公司的[[Apache Kafka]]產品名。 | '''Confluent'''是一家公司,也是該公司的[[Apache Kafka]] 產品線的 產品名 。 | ||
== 簡介 == | |||
Confluent是[[Apache Kafka]]發明人出來開的公司,也是目前最知名的Kafka商業支援服務。同時Confluent也是該公司推出的軟體品牌,提供了眾多的Open Source套件用以管理Kafka Cluster(即社群版本元件),另外提供商用版本,包括Control Center(提供三十天試用)。 | |||
== 硬體 == | |||
在PoC時我使用了三台<code>t3.small</code>(2 GB RAM,另外手動設定加上512 MB Swap),三台都安裝完整的套件並且跑起來,一開始不會有問題,但跑一陣子後會因為記憶體不足而異常。 | |||
建議在正式環境下ZooKeeper部分建議使用<code>m5.large</code>(8 GB RAM)或是更好的機器執行 。 | |||
== 安裝 == | == 安裝 == | ||
當然要先裝[[Java]]: | |||
<syntaxhighlight lang="bash"> | |||
sudo apt install -y default-jre | |||
</syntaxhighlight> | |||
這邊只安裝社群版本: | 這邊只安裝社群版本: | ||
第11行: | 第27行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== 設 | == 設 定ZooKeeper == | ||
修改<code>/etc/kafka/zookeeper. | {{See also|Confluent/ZooKeeper}} | ||
== 設定Kafka == | |||
如果[[ZooKeeper]]與[[Kafka]]不同伺服器,需要 修改<code>/etc/kafka/server.properties</code>的<code>zookeeper.connect</code> 的值,像是這樣 : | |||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
# | #zookeeper.connect=localhost:2181 | ||
zookeeper.connect=internal-test-gslin-confluent-xxxxxxxxx.us-east-1.elb.amazonaws.com:2181 | |||
</syntaxhighlight> | |||
修改<code>/etc/kafka/server.properties</code>的<code>broker.id</code>設定,讓他自動產生而不需要自己指定: | |||
<syntaxhighlight lang="bash"> | |||
server. | #broker.id=0 | ||
broker.id.generation.enable=true | |||
</syntaxhighlight> | |||
理論上就可以啟動了: | |||
<syntaxhighlight lang="bash"> | |||
sudo service confluent-confluent start | |||
sudo service confluent-confluent status | |||
</syntaxhighlight> | </syntaxhighlight> | ||
== 設定其他套件 == | |||
<syntaxhighlight lang=" | 啟動Schema Registry: | ||
<syntaxhighlight lang="bash"> | |||
sudo service confluent-schema-registry start | |||
sudo service confluent-schema-registry status | |||
</syntaxhighlight> | |||
啟動Kafka Connect: | |||
<syntaxhighlight lang="bash"> | |||
sudo service confluent-kafka-connect start | |||
sudo service confluent-kafka-connect status | |||
</syntaxhighlight> | |||
啟動Kafka REST Proxy: | |||
<syntaxhighlight lang="bash"> | |||
sudo service confluent-kafka-rest start | |||
sudo service confluent-kafka-rest status | |||
</syntaxhighlight> | |||
啟動KSQL: | |||
<syntaxhighlight lang="bash"> | |||
sudo service confluent-ksql start | |||
sudo service confluent-ksql status | |||
</syntaxhighlight> | </syntaxhighlight> | ||
第43行: | 第92行: | ||
* {{Official|https://www.confluent.io/}} {{en}} | * {{Official|https://www.confluent.io/}} {{en}} | ||
* [https://docs.confluent.io/current/installation/installing_cp/deb-ubuntu.htmlManual Install using Systemd on Ubuntu and Debian] {{en}} | * [https://docs.confluent.io/current/installation/installing_cp/deb-ubuntu.htmlManual Install using Systemd on Ubuntu and Debian] {{en}} | ||
* [https://cwiki.apache.org/confluence/display/ZOOKEEPER/Client-Server+mutual+authentication Client-Server mutual authentication] {{en}} | |||
* [https://medium.com/@johny.urgiles/overcoming-zookeeper-acls-1b205cfdc301 Overcoming Zookeeper ACLs] {{en}} | |||
[[Category:軟體]] | [[Category:軟體]] |
於 2019年3月13日 (三) 03:13 的修訂
Confluent是一家公司,也是該公司的Apache Kafka產品線的產品名。
簡介
Confluent是Apache Kafka發明人出來開的公司,也是目前最知名的Kafka商業支援服務。同時Confluent也是該公司推出的軟件品牌,提供了眾多的Open Source套件用以管理Kafka Cluster(即社群版本元件),另外提供商用版本,包括Control Center(提供三十天試用)。
硬件
在PoC時我使用了三台t3.small
(2 GB RAM,另外手動設定加上512 MB Swap),三台都安裝完整的套件並且跑起來,一開始不會有問題,但跑一陣子後會因為記憶體不足而異常。
建議在正式環境下ZooKeeper部分建議使用m5.large
(8 GB RAM)或是更好的機器執行。
安裝
當然要先裝Java:
sudo apt install -y default-jre
這邊只安裝社群版本:
wget -qO - https://packages.confluent.io/deb/5.1/archive.key | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.confluent.io/deb/5.1 stable main"
sudo apt install -y confluent-community-2.11
設定ZooKeeper
設定Kafka
如果ZooKeeper與Kafka不同伺服器,需要修改/etc/kafka/server.properties
的zookeeper.connect
的值,像是這樣:
#zookeeper.connect=localhost:2181
zookeeper.connect=internal-test-gslin-confluent-xxxxxxxxx.us-east-1.elb.amazonaws.com:2181
修改/etc/kafka/server.properties
的broker.id
設定,讓他自動產生而不需要自己指定:
#broker.id=0
broker.id.generation.enable=true
理論上就可以啟動了:
sudo service confluent-confluent start
sudo service confluent-confluent status
設定其他套件
啟動Schema Registry:
sudo service confluent-schema-registry start
sudo service confluent-schema-registry status
啟動Kafka Connect:
sudo service confluent-kafka-connect start
sudo service confluent-kafka-connect status
啟動Kafka REST Proxy:
sudo service confluent-kafka-rest start
sudo service confluent-kafka-rest status
啟動KSQL:
sudo service confluent-ksql start
sudo service confluent-ksql status