OBD部署OBserver时自动指定最新版本3.1.3部署
[admin@CAIP131 ~]$ obd cluster deploy obce_demo -c obce-demo.yaml Update OceanBase-community-stable-el7 ok Update OceanBase-development-kit-el7 ok Download oceanbase-ce-3.1.3-10000292022032916.el7.x86_64.rpm (47.11 M): 100% [#####################################] Time: 0:06:13 132.35 kB/s Package oceanbase-ce-3.1.3 is available. Download obproxy-3.2.0-1.el7.x86_64.rpm (7.80 M): 100% [###########################################################] Time: 0:00:59 137.47 kB/s Package obproxy-3.2.0 is available. install oceanbase-ce-3.1.3 for local ok install obproxy-3.2.0 for local ok ±------------------------------------------------------------------------------------------+ | Packages | ±-------------±--------±----------------------±-----------------------------------------+ | Repository | Version | Release | Md5 | ±-------------±--------±----------------------±-----------------------------------------+ | oceanbase-ce | 3.1.3 | 10000292022032916.el7 | eab08e5d473bd4884fdf2ac4d7dff6a329b68abe | | obproxy | 3.2.0 | 1.el7 | 8d5c6978f988935dc3da1dbec208914668dcf3b2 | ±-------------±--------±----------------------±-----------------------------------------+ Repository integrity check ok Parameter check ok Open ssh connection ok Remote oceanbase-ce-3.1.3-eab08e5d473bd4884fdf2ac4d7dff6a329b68abe repository install ok Remote oceanbase-ce-3.1.3-eab08e5d473bd4884fdf2ac4d7dff6a329b68abe repository lib check ok Remote obproxy-3.2.0-8d5c6978f988935dc3da1dbec208914668dcf3b2 repository install ok Remote obproxy-3.2.0-8d5c6978f988935dc3da1dbec208914668dcf3b2 repository lib check ok Cluster status check ok Initializes observer work home ok Initializes obproxy work home ok obce_demo deployed
OBD自动部署OBserver如何指定版本?
指定yaml配置,例指定:oceanbase-ce 3.1.2
[admin@CAIP131 ~]$ vim obce-demo.yaml
按照官方文档在yaml配置文件开头部分加入版本
oceanbase-ce: version:3.1.2
按操作在OBD指定版本部署OBserver后报错
[admin@CAIP131 ~]$ obd cluster deploy obce_demo -c obce-demo.yaml [ERROR] Parsing error: mapping values are not allowed here in “/home/admin/.obd/cluster/obce_demo/config.yaml”, line 3, column 9 [ERROR] Running Error: mapping values are not allowed here in “/home/admin/.obd/cluster/obce_demo/config.yaml”, line 3, column 9
解决办法
OBD指定版本部署OBserver报错,在yaml配置version英文前面加一个空格,即可解决
oceanbase-ce: version:3.1.2
OBD重新指定版本部署OBserver3.1.2,已经可以正常部署
[admin@CAIP131 ~]$ obd cluster deploy obce_demo -c obce-demo.yaml Update OceanBase-community-stable-el7 ok Update OceanBase-development-kit-el7 ok Download oceanbase-ce-3.1.2-10000392021123010.el7.x86_64.rpm (46.45 M): 100% [####################################] Time: 0:03:10 256.19 kB/s Package oceanbase-ce-3.1.2 is available. Download obproxy-3.2.0-1.el7.x86_64.rpm (7.80 M): 100% [##########################################################] Time: 0:00:32 250.34 kB/s Package obproxy-3.2.0 is available. install oceanbase-ce-3.1.2 for local ok install obproxy-3.2.0 for local ok ±------------------------------------------------------------------------------------------+ | Packages | ±-------------±--------±----------------------±-----------------------------------------+ | Repository | Version | Release | Md5 | ±-------------±--------±----------------------±-----------------------------------------+ | oceanbase-ce | 3.1.2 | 10000392021123010.el7 | 7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed | | obproxy | 3.2.0 | 1.el7 | 8d5c6978f988935dc3da1dbec208914668dcf3b2 | ±-------------±--------±----------------------±-----------------------------------------+ Repository integrity check ok Parameter check ok Open ssh connection ok Remote oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed repository install ok Remote oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed repository lib check ok Remote obproxy-3.2.0-8d5c6978f988935dc3da1dbec208914668dcf3b2 repository install ok Remote obproxy-3.2.0-8d5c6978f988935dc3da1dbec208914668dcf3b2 repository lib check ok Cluster status check ok Initializes observer work home ok Initializes obproxy work home ok obce_demo deployed
错误方法:
正确方法:
建议官方文档加个说明,版本前面得加空格,或配置version语句前面直接空一格出来。
说明
此次测试,只是单纯想了解一下指定版本部署功能,应该是很少会用到,仅供大家参考哦,当然使用新版本可能会更好,新版本的功能肯定是有改进了。