Reason: column_name[content_html], the length of input string is too long than vec schema. first 32 bytes of input str: [<div class="ewb-info-bd" data-ro] schema length: 2147483643; limit length: 1048576; actual length: 1497050; . src line [];
STRING
变长字符串,默认支持1048576 字节(1MB),可调大到 2147483643 字节(2G),可通过be配置`string_type_length_soft_limit_bytes`调整。 String类型只能用在value 列,不能用在 key 列和分区 分桶列
解决方法:
1、FE配置中添加
vim conf/fe.conf
# 指定当前服务器ip
priority_networks = 10.193.6.183/24
# 大小写敏感
lower_case_table_names=1
# 开启多源目录功能
enable_multi_catalog=true
# String最大长度
string_type_hard_limit = 10485760
#元数据目录
meta_dir=/opt/data/dorisMeta
vi /opt/app/doris_1.2.0/fe/conf/fe.conf
priority_networks = 10.193.6.183/24
lower_case_table_names = 1
enable_multi_catalog = true
meta_dir=/data/dorisMeta
string_type_hard_limit = 2147483643
2、BE配置中
vim conf/be.conf
# 指定当前服务器ip
priority_networks = 10.193.6.183/24
storage_root_path= /opt/data/dorisData
string_type_length_soft_limit_bytes= 2147483643
说明: 这个是设置非常重要,对应大文本如果不设置
STRING
变长字符串,默认支持1048576 字节(1MB),可调大到 2147483643 字节(2G),可通过be配置string_type_length_soft_limit_bytes调整。 String类型只能用在value 列,不能用在 key 列和分区 分桶列