问题存在版本:GCDW-9.8.0.6.3

1、问题现象:在GCDW k8s版本,执行s3加载,其中加载语句采用通配符加载方式,出现报错:The difference between the request time and the server's time is too large。
    举例如下:
    执行S3 通配符加载,报错如下:
gbase> load data infile 's3n://abc:abc@10.10.1.1:9000/minio/test.txt' into table t1 fields terminated by '|';
ERROR 1733 (HY000): (GBA-01EX-700) Gbase general error: Task 538 failed, Expanding wildcard operation failed with error - ErrorRequestTimeTooSkewed,   Message: The difference between the request time and the server's time is too large.
  Resource: /
  Extra Details:
    HostId24e28319-2b0c-406a-bc90-a7ca89dc43a4
 uri : s3n://abc:***@10.10.1.1:9000/minio/test.txt.

 
2、问题分析:
    (1)对租户下各coor节点和warehouse节点的系统时间进行确认,发现时间无差异。
[root@coor-1-0 ~]# date
Mon Oct  9 10:42:45 CST 2023

[root@coor-2-0 ~]# date
Mon Oct  9 10:42:49 CST 2023

[root@wh1-c1-0 ~]# date
Mon Oct  9 10:42:51 CST 2023

[root@wh1-c1-1 ~]# date
Mon Oct  9 10:42:53 CST 2023

    (2)对S3数据源的系统时间进行查看,发现其时间与GCDW集群的系统时间相差半小时。
[root@node-0 minio]# date
2023年 10月 09日 星期一 10:12:21 CST


3、解决或绕行方案:
    对S3数据源的系统时间进行调整,或者对GCDW集群下各coor节点和warehouse节点的系统时间进行调整,使两者时间差为秒级。
    改后S3数据源时间如下:
[test@test0 minio]# date
2023年 10月 09日 星期一 10:42:56 CST

    再次执行,可成功加载。
gbase> load data infile 's3n://abc:abc@10.10.1.1:9000/minio/test.txt' into table t1 fields terminated by '|';
Query OK, 24004860 rows affected (Elapsed: 00:00:08.38)
Task 13 finished, Loaded 24004860 records, Skipped 0 records

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐