1、修改配置
1.1、CoordinatorServer配置
vi server.yaml
#==============================================================================
# Zookeeper
#==============================================================================
# Zookeeper connection string (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all Fluss znodes.
zookeeper.address: wishfox-246:2181,wishfox-247:2181,wishfox-248:2181
zookeeper.path.root: /fluss
#==============================================================================
# Common
#==============================================================================
# The default bucket number to be used when creating tables if no bucket number
# is specified for the table.
default.bucket.number: 1
# The default replication factor to be used when creating tables if no replication
# factor is specified for the table.
default.replication.factor: 3
# The local data directory to be used for Fluss to storing kv and log data.
data.dir: /data/fluss/data
# The remote data directory to be used for Fluss. Now, it is only used for storing
# kv snapshot data. Expected be set to a remote location like: oss://bucket/path for oss
# filesystem or hdfs://namenode:port/path for hdfs filesystem
remote.data.dir: hdfs://hdfs-ha/user/fluss/warehouse
#==============================================================================
# Listeners
#==============================================================================
# The network address and port to which the server binds for accepting connections.
# The format is '{listener_name}://{host}:{port}', and multiple addresses can be specified, separated by commas.
bind.listeners: INTERNAL://wishfox-245:29092, CLIENT://wishfox-245:29093
advertised.listeners: CLIENT://wishfox-245:29093
security.protocol.map: CLIENT:SASL, INTERNAL:PLAINTEXT
internal.listener.name: INTERNAL
security.sasl.enabled.mechanisms: PLAIN
security.sasl.plain.jaas.config: com.alibaba.fluss.security.auth.sasl.plain.PlainLoginModule required user_admin="WishFox.2026" user_fluss="WishFox.2026";
authorizer.enabled: true
super.users: User:admin,User:fluss
#==============================================================================
# Tablet Server
#==============================================================================
# The id of the tablet server to be run, must be set and should be different
# when running multiple tablet servers.
tablet-server.id: 245
# Controlled shutdown configuration for tablet servers
# tablet-server.controlled-shutdown.max-retries: 3
# tablet-server.controlled-shutdown.retry-interval: 1000ms
#==============================================================================
# OSS FileSystem
#==============================================================================
# The configuration for oss filesystem when using oss as the remote data directory
# fs.oss.endpoint: xxx
# fs.oss.accessKeyId: xxx
# fs.oss.accessKeySecret: xxx
# Basic HA Hadoop
fluss.hadoop.fs.defaultFS: hdfs://hdfs-ha
fluss.hadoop.dfs.nameservices: hdfs-ha
fluss.hadoop.dfs.ha.namenodes.hdfs-ha: nn-246,nn-247,nn-248
fluss.hadoop.dfs.namenode.rpc-address.hdfs-ha.nn-246: wishfox-246:9000
fluss.hadoop.dfs.namenode.rpc-address.hdfs-ha.nn-247: wishfox-247:9000
fluss.hadoop.dfs.namenode.rpc-address.hdfs-ha.nn-248: wishfox-248:9000
fluss.hadoop.dfs.namenode.http-address.hdfs-ha.nn-246: wishfox-246:9870
fluss.hadoop.dfs.namenode.http-address.hdfs-ha.nn-247: wishfox-247:9870
fluss.hadoop.dfs.namenode.http-address.hdfs-ha.nn-248: wishfox-248:9870
fluss.hadoop.dfs.ha.automatic-failover.enabled: true
fluss.hadoop.dfs.client.failover.proxy.provider.hdfs-ha: org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
#
remote.fs.write-buffer-size: 32mb
auto-partition.check.interval: 15min
#
datalake.format: paimon
datalake.paimon.metastore: filesystem
datalake.paimon.warehouse: hdfs://hdfs-ha/user/paimon/warehouse
# 日志配置
env.log.dir: /data/fluss/log
env.log.level: INFO
env.log.max: 5
# JDK 配置
env.java.home: /opt/apps/doris/java17
1.2、TabletServer配置
#==============================================================================
# Zookeeper
#==============================================================================
# Zookeeper connection string (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
# You can also append an optional chroot string to the urls to specify the
# root directory for all Fluss znodes.
zookeeper.address: wishfox-246:2181,wishfox-247:2181,wishfox-248:2181
zookeeper.path.root: /fluss
#==============================================================================
# Common
#==============================================================================
# The default bucket number to be used when creating tables if no bucket number
# is specified for the table.
default.bucket.number: 1
# The default replication factor to be used when creating tables if no replication
# factor is specified for the table.
default.replication.factor: 3
# The local data directory to be used for Fluss to storing kv and log data.
data.dir: /data/fluss/data
# The remote data directory to be used for Fluss. Now, it is only used for storing
# kv snapshot data. Expected be set to a remote location like: oss://bucket/path for oss
# filesystem or hdfs://namenode:port/path for hdfs filesystem
remote.data.dir: hdfs://hdfs-ha/user/fluss/warehouse
#==============================================================================
# Listeners
#==============================================================================
# The network address and port to which the server binds for accepting connections.
# The format is '{listener_name}://{host}:{port}', and multiple addresses can be specified, separated by commas.
bind.listeners: INTERNAL://wishfox-246:29092, CLIENT://wishfox-246:29093
advertised.listeners: CLIENT://wishfox-246:29093
security.protocol.map: CLIENT:SASL, INTERNAL:PLAINTEXT
internal.listener.name: INTERNAL
security.sasl.enabled.mechanisms: PLAIN
security.sasl.plain.jaas.config: com.alibaba.fluss.security.auth.sasl.plain.PlainLoginModule required user_admin="WishFox.2026" user_fluss="WishFox.2026";
authorizer.enabled: true
super.users: User:admin,User:fluss
#==============================================================================
# Tablet Server
#==============================================================================
# The id of the tablet server to be run, must be set and should be different
# when running multiple tablet servers.
tablet-server.id: 246
# Controlled shutdown configuration for tablet servers
# tablet-server.controlled-shutdown.max-retries: 3
# tablet-server.controlled-shutdown.retry-interval: 1000ms
#==============================================================================
# OSS FileSystem
#==============================================================================
# The configuration for oss filesystem when using oss as the remote data directory
# fs.oss.endpoint: xxx
# fs.oss.accessKeyId: xxx
# fs.oss.accessKeySecret: xxx
# Basic HA Hadoop
fluss.hadoop.fs.defaultFS: hdfs://hdfs-ha
fluss.hadoop.dfs.nameservices: hdfs-ha
fluss.hadoop.dfs.ha.namenodes.hdfs-ha: nn-246,nn-247,nn-248
fluss.hadoop.dfs.namenode.rpc-address.hdfs-ha.nn-246: wishfox-246:9000
fluss.hadoop.dfs.namenode.rpc-address.hdfs-ha.nn-247: wishfox-247:9000
fluss.hadoop.dfs.namenode.rpc-address.hdfs-ha.nn-248: wishfox-248:9000
fluss.hadoop.dfs.namenode.http-address.hdfs-ha.nn-246: wishfox-246:9870
fluss.hadoop.dfs.namenode.http-address.hdfs-ha.nn-247: wishfox-247:9870
fluss.hadoop.dfs.namenode.http-address.hdfs-ha.nn-248: wishfox-248:9870
fluss.hadoop.dfs.ha.automatic-failover.enabled: true
fluss.hadoop.dfs.client.failover.proxy.provider.hdfs-ha: org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
#
remote.fs.write-buffer-size: 32mb
auto-partition.check.interval: 15min
#
datalake.format: paimon
datalake.paimon.metastore: filesystem
datalake.paimon.warehouse: hdfs://hdfs-ha/user/paimon/warehouse
# 日志配置
env.log.dir: /data/fluss/log
env.log.level: INFO
env.log.max: 5
# JDK 配置
env.java.home: /opt/apps/doris/java17
2、启动服务
2.1、启动coordinator-server
sh bin/coordinator-server.sh start
sh bin/coordinator-server.sh stop
2.2、启动tablet-server
sh bin/tablet-server.sh start
sh bin/tablet-server.sh stop
54




被折叠的 条评论
为什么被折叠?



