加载任务的状态信息
状态信息表中记录正在运行的所有加载任务的状态信息。
具体字段描述:
语法:
gbase> use information_schema;
gbase> select * from load_status;
加载错误数据与溯源信息检索
支持语法形式对于错误数据与溯源信息检索功能,具体语法如下:
show [ gcluster ] load logs task_id LIMIT {[offset,] row_count}
查询结果信息表定义
例如:
- show load logs 100 显示 task_id 100 任务的前 10 条错误数据信息
- show load logs 100 limit 5 显示 task_id 100 任务的前 5 条错误数据信息
- show load logs 100 limit 0,5 显示 task_id 100 任务的前 5 条错误数据信息
- show load logs 100 limit 1,5 显示 task_id 100 任务的从第 1 条开始的后面5 条错误数据信息
- show gcluster load logs 101 显示所有 coordinator 节点上 task_id 101 任务的前 10条错误数据信息
加载结果信息内存表查询
加载结果信息通过 information_schema 库内的 LOAD_RESULT 和 CLUSTER_LOAD_RESULT 表进行查询,
- 只查询当前 coordinator 节点, select 查询形式,查询加载信息,表名为: LOAD_RESULT,例如:
select * from information_schema.load_result
- 查 询 所 有 coordinator 节 点 , select 查 询 形 式 , 查 询 加 载 信 息 , 表 名 为 :CLUSTER_LOAD_RESULT,例如:
select * from information_schema.cluster_load_result;
加载结果信息统计日志
加载完成时将加载结果信息写入日志文件 loader_result.log 中,加载结果信息是以‘|‘为列分隔符,以‘\n‘为行分隔符存储的普通文本文件,存放在发起节点gcluster($GCLUSTER_HOM/log/gcluster/)日志目录,不支持指定存放路径。