GBase 8a - GCDW k8s版s3加载报错The difference between the request time问题解决

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数据源时间如下:
[root@liujie-node-0 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

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值