broker导出数据到hive查询不到

【详述】问题详细描述
【导入/导出方式】
【背景】直接导出,用EXPORT table towatt_charge.dwd_charge_bill TO “hive://path”
【业务影响】
【StarRocks版本】例如:1.19.2
【集群规模】例如:3fe(1 follower+2observer)+5be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:4C/8G/万兆
【附件】
EXPORT table towatt_charge.dwd_charge_bill TO “hdfs://node1.ambari.com:8020/warehouse/tablespace/managed/hive/towatt_data.db/dwd_charge_bill1/month=202101/dwd_charge_bill” PROPERTIES ( “column_separator”=",", “line_delimiter”="\n", “load_mem_limit”=“2147483648”, “timeout” = “3600” ) WITH BROKER “broker1” ( “username” = “hive”, “password” = “hive”);

文件数据存在,但是hive select count(id) from dwd_charge_bill 为空

后来我 MSCK REPAIR TABLE dwd_charge_bill; 同步数据源,

1、以计算模式收集表、表的所有列及表上的所有索引的统计信息

analyze table table_name compute statistics;

2、收集表的统计信息,并且以计算模式

analyze table table_name compute statistics for table;

3、以计算模式收集索引的统计信息

analyze index index_name compute statistics;

4、以计算模式对表的列收集统计信息

analyze table table_name compute statistics for table for columns col1,col2;

4、删除表、表的所有列及表的所有索引的统计信息

analyze table table_name delete statistics;
执行 1 就可以查询了

1赞

导出的数据落到hdfs中对应的hive表的分区目录,需要更新下元数据