doris3 查看fe日志有 failed to get local fe's type, sleep 5 s, try again.

Viewed 51

具体错误如下:
2024-08-16 10:15:29,085 WARN (main|1) [CloudEnv.getClusterIdAndRole():178] failed to get local fe's type, sleep 5 s, try again.
2024-08-16 10:15:34,089 INFO (main|1) [CloudEnv.getLocalTypeFromMetaService():139] get cluster response from meta service status {
code: OK
msg: ""
}
cluster {
cluster_id: "RESERVED_CLUSTER_ID_FOR_SQL_SERVER"
cluster_name: "RESERVED_CLUSTER_NAME_FOR_SQL_SERVER"
type: SQL
nodes {
cloud_unique_id: "1:sample_instance_id:cloud_unique_id_sql_server00"
ip: "172.30.11.73"
ctime: 1723773249
mtime: 1723773249
edit_log_port: 12103
node_type: FE_MASTER
}
}
enable_storage_vault: true

2024-08-16 10:15:34,090 WARN (main|1) [CloudEnv.getClusterIdAndRole():178] failed to get local fe's type, sleep 5 s, try again.

请问是哪里不对,配置步骤按照官网一步一步做的。

1 Answers

ms配置

// meta_service

brpc_listen_port = 5000
brpc_num_threads = -1
brpc_idle_timeout_sec = 30
fdb_cluster = qFu5PnR3:ElYp1vFP@127.0.0.1:4500
fdb_cluster_file_path = ./conf/fdb.cluster
http_token = greedisgood9999
re配置

// meta_service

brpc_listen_port = 5100
brpc_num_threads = -1
brpc_idle_timeout_sec = 30
fdb_cluster = qFu5PnR3:ElYp1vFP@127.0.0.1:4500
fdb_cluster_file_path = ./conf/fdb.cluster
http_token = greedisgood9999
fe配置
meta_dir=/data/doris-meta

priority_networks=172.30.11.0/24

dynamic_partition_enable=true
enable_outfile_to_local=true
########################################
meta_service_endpoint = 127.0.0.1:5000
cloud_unique_id = 1:sample_instance_id:cloud_unique_id_sql_server00

be配置

enable auth check

enable_auth = false

priority_networks=172.30.11.0/24
storage_root_path=/data/doris_data

max_tablet_version_num = 20000
max_compaction_threads = 50
compaction_task_num_per_disk =16
cumulative_size_based_promotion_size_mbytes = 2048
row_step_for_compaction_merge_log = 1
total_permits_for_compaction_score = 50000

enable_stream_load_record=true

max_runnings_transactions_per_txn_map=10000

max_segment_num_per_rowset=1000

flush_thread_num_per_store=20

high_priority_flush_thread_num_per_store=20

#################

meta_service_endpoint = 127.0.0.1:5000
cloud_unique_id = 1:sample_instance_id:cloud_unique_id_compute_node0
meta_service_use_load_balancer = false
enable_file_cache = true
file_cache_path = [{"path":"/video/doris_cloud/file_cache","total_size":104857600000000,"query_limit":10485760000}]

集群命令如下:
curl -s "127.0.0.1:5000/MetaService/http/create_instance?token=greedisgood9999" -d
'{
"instance_id": "sample_instance_id",
"name": "sample_instance_name",
"user_id": "sample_user_id",
"vault": {
"hdfs_info" : {
"build_conf": {
"fs_name": "hdfs://172.30.11.37:9000",
"user": "root"
},
"prefix": "sample_prefix"
}
}
}'

添加 FE

curl '127.0.0.1:5000/MetaService/http/add_cluster?token=greedisgood9999' -d '{
"instance_id":"sample_instance_id",
"cluster":{
"type":"SQL",
"cluster_name":"RESERVED_CLUSTER_NAME_FOR_SQL_SERVER",
"cluster_id":"RESERVED_CLUSTER_ID_FOR_SQL_SERVER",
"nodes":[
{
"cloud_unique_id":"1:sample_instance_id:cloud_unique_id_sql_server00",
"ip":"172.30.11.73",
"edit_log_port":12103,
"node_type":"FE_MASTER"
}
]
}
}'


添加 BE

curl '127.0.0.1:5000/MetaService/http/add_cluster?token=greedisgood9999' -d '{
"instance_id":"sample_instance_id",
"cluster":{
"type":"COMPUTE",
"cluster_name":"cluster_name0",
"cluster_id":"cluster_id0",
"nodes":[
{
"cloud_unique_id":"1:sample_instance_id:cloud_unique_id_compute_node0",
"ip":"172.30.11.73",
"heartbeat_port":9455
}
]
}
}'

此时连接fe也连接不上

mysql -uroot -h 172.30.11.73 -P 9030 -p

会提示输入密码,不管怎么输入都没法进入mysql控制台