执行obd test的时候报错No such package: obclient

求助一个问题:执行obd test的时候报错No such package: obclient
命令:
obd test tpch myob433 --tenant=tenant_tpch -s 100 --password=’***’ --tmp-dir=/data1/ob/tpch_tmp --tbl-path=/data1/ob/tpch_tbl --remote-tbl-dir=/data1/ob/tpch_tbl --dt true -O 2
输出:
Get local repositories and plugins ok
Open ssh connection ok
Cluster status check ok
The tool obtpch is already installed
[ERROR] No such package: obclient
Trace ID: d2e812ee-dbc1-11ef-897f-cc64a6d08f75
If you want to view detailed obd logs, please run: obd display-trace d2e812ee-dbc1-11ef-897f-cc64a6d08f75

此时obclient是正常的,能够连接数据库,也能obclient --version,obtpch安装的是oceanbase-all-in-one/rpms路径下的rpm

【 使用环境 】 测试环境3节点
【 OB or 其他组件 】obd web部署了oceanbase-ce、obproxy-ce、ocp-express
【 使用版本 】4.3.3
【复现路径】部署–创建租户–安装obtpch–执行obd test tpch

1 个赞


试试添加该参数

1 个赞

有加过,值为
/data1/fff/ob/ob_433/oceanbase-all-in-one/obclient/u01/obclient/bin/

/usr/bin/obclient
的时候都不行,是我加错了吗?

1 个赞

正常是添加/usr/bin/obclient。
你的obclient是使用obd安装的还是手动rpm安装的?

1 个赞

cd oceanbase-all-in-one
sh bin/install.sh
obd是这样安装的,安装完就有了obd

obd版本是多少
执行obd display-trace d2e812ee-dbc1-11ef-897f-cc64a6d08f75。应该会有详细日志,可以看一下

1 个赞

obd 版本更新一下,obd update
使用obd重新安装部署一下obclient试试。

1 个赞

$ obd update
[ERROR] To update OBD, you must be the owner of /.
这是咋了

机器不能连接外网的情况下,怎么升级?

1 个赞

好像因为访问不了外网,一直阻塞

1 个赞

请问哪里可以下载到obclient的rmp?

1 个赞

https://www.oceanbase.com/softwarecenter
下载all in one 包里面有obd obclient到rpm包

1 个赞

亲测没有,我后来在镜像站上找到的

但是装了rpm还是报错,没有改善

1 个赞

找不到obclient包?

请看VCR:
$ obclient --version
obclient Ver Distrib 10.4.18-MariaDB, for Linux (aarch64) using readline 5.1

$ rpm -q obclient
obclient-2.2.6-1.el7.aarch64

$ obd display-trace d2e812ee-dbc1-11ef-897f-cc64a6d08f75
[DEBUG] - Try to install obclient
[DEBUG] - exclusive lock /data1/fff/.obd/lock/global, count 2
[DEBUG] - mkdir /data1/fff/.obd/mirror
[DEBUG] - mkdir /data1/fff/.obd/mirror/remote
[DEBUG] - mkdir /data1/fff/.obd/mirror/local
[DEBUG] - try to get exclusive lock /data1/fff/.obd/lock/mirror_and_repo
[DEBUG] - exclusive lock /data1/fff/.obd/lock/mirror_and_repo, count 1
[DEBUG] - exclusive lock /data1/fff/.obd/lock/mirror_and_repo, count 2
[DEBUG] - load repo config: /data1/fff/.obd/mirror/remote/OceanBase.repo
[DEBUG] - open /data1/fff/.obd/mirror/remote/OceanBase.repo for r
[DEBUG] - exclusive lock /data1/fff/.obd/lock/mirror_and_repo, count 3
[DEBUG] - md5 is None
[DEBUG] - name is obclient
[DEBUG] - arch is [‘aarch64’, ‘noarch’]
[DEBUG] - release is None
[DEBUG] - version is None
[DEBUG] - min_version is None
[DEBUG] - max_version is None
[DEBUG] - MirrorRepositoryType.LOCAL mirror local found pkg: None
[CRITICAL] [ERROR] No such package: obclient
[INFO] Trace ID: d2e812ee-dbc1-11ef-897f-cc64a6d08f75
[INFO] If you want to view detailed obd logs, please run: obd display-trace d2e812ee-dbc1-11ef-897f-cc64a6d08f75

$ obd test tpch …
Get local repositories and plugins ok
Open ssh connection ok
Cluster status check ok
The tool obtpch is already installed
[ERROR] No such package: obclient
Trace ID: 82c0b34a-dc50-11ef-b900-cc64a6d08f75
If you want to view detailed obd logs, please run: obd display-trace 82c0b34a-dc50-11ef-b900-cc64a6d08f75