OceanBase 社区版 3.1.3 Docker镜像尝鲜,能错过?不存在的
生活随笔
收集整理的這篇文章主要介紹了
OceanBase 社区版 3.1.3 Docker镜像尝鲜,能错过?不存在的
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
社區(qū)群里的小伙伴在貧困線上掙扎,僅有的內(nèi)存都分給OceanBase Docker了,還是啟動(dòng)不起來(lái)??別擔(dān)心,OceanBase 社區(qū)版 3.1.3 Docker鏡像發(fā)布了,支持2C8G絲滑啟動(dòng),快來(lái)嘗嘗鮮!!!
獲取鏈接:https://hub.docker.com/search?q=oceanbase&sort=updated_at&order=desc
誰(shuí)會(huì)是第四個(gè)下載的人?加快腳步了。。。。
Show The Code~
1.拉取鏡像
$ docker pull oceanbase/oceanbase-ce-standalone:v3.1.32.運(yùn)行容器
$ docker run -p 2881:2881 --name obce-standalone -d oceanbase/oceanbase-ce-standalone:v3.1.33.登錄容器系統(tǒng)
$ docker exec -it obce-standalone bash4.連一把OB看看
[root@9dd754253d85 ob]# obclient -h localhost -S /root/ob/run/mysql.sock -uroot@sys -P2881 -c -A oceanbase Welcome to the OceanBase. Commands end with ; or \g. Your MySQL connection id is 3221487736 Server version: 5.7.25 OceanBase 3.1.2 (r10000392021123010-d4ace121deae5b81d8f0b40afbc4c02705b7fc1d) (Built Dec 30 2021 02:47:29)Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MySQL [oceanbase]> show databases; +--------------------+ | Database | +--------------------+ | oceanbase | | information_schema | | mysql | | SYS | | LBACSYS | | ORAAUDITOR | | test | +--------------------+ 7 rows in set (0.002 sec)5.再見
MySQL [oceanbase]> exit Bye6.放個(gè)容器啟動(dòng)日志給大家看看吧
$ docker logs obce-standalone generate boot.yaml ... create boot dirs and deploy ob cluster ... Package oceanbase-ce-3.1.2 is available. install oceanbase-ce-3.1.2 for local ok Cluster param config check ok Open ssh connection ok Generate observer configuration x [ERROR] (127.0.0.1) / not enough disk space. (Avail: 32.8G, Need: 74.0G). Use `redo_dir` to set other disk for clogSee https://open.oceanbase.com/docs/obd-cn/V1.2.0/10000000000017237. generate boot.yaml ... create boot dirs and deploy ob cluster ... oceanbase-ce-3.1.2 already installed. Cluster param config check ok Open ssh connection ok Generate observer configuration ok oceanbase-ce-3.1.2 already installed. +-------------------------------------------------------------------------------------------+ | Packages | +--------------+---------+-----------------------+------------------------------------------+ | Repository | Version | Release | Md5 | +--------------+---------+-----------------------+------------------------------------------+ | oceanbase-ce | 3.1.2 | 10000392021123010.el7 | 7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed | +--------------+---------+-----------------------+------------------------------------------+ 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 !! [WARN] 127.0.0.1 oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed require: libmariadb.so.3Try to get lib-repository Package oceanbase-ce-libs-3.1.2 is available. install oceanbase-ce-libs-3.1.2 for local ok Use oceanbase-ce-libs-3.1.2-94fff0ab31de053051dba66039e3185fa390cad5 for oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed Remote oceanbase-ce-libs-3.1.2-94fff0ab31de053051dba66039e3185fa390cad5 repository install ok Remote oceanbase-ce-3.1.2-7fafba0fac1e90cbd1b5b7ae5fa129b64dc63aed repository lib check ok Cluster status check ok Initializes observer work home ok obcluster deployed Get local repositories and plugins ok Open ssh connection ok Load cluster param plugin ok Check before start observer ok [WARN] (127.0.0.1) clog and data use the same disk (/)Start observer ok observer program health check ok Connect to observer ok Initialize cluster Cluster bootstrap ok Wait for observer init ok +---------------------------------------------+ | observer | +-----------+---------+------+-------+--------+ | ip | version | port | zone | status | +-----------+---------+------+-------+--------+ | 127.0.0.1 | 3.1.2 | 2881 | zone1 | active | +-----------+---------+------+-------+--------+obcluster running Get local repositories and plugins ok Open ssh connection ok Connect to observer ok Create tenant test ok start ob cluster ... Get local repositories and plugins ok Open ssh connection ok Load cluster param plugin ok Cluster status check ok Deploy "obcluster" is running boot success!最后,真的要再見了,我文章水的這么容易,大家還不趕快點(diǎn)贊關(guān)注嗎?
總結(jié)
以上是生活随笔為你收集整理的OceanBase 社区版 3.1.3 Docker镜像尝鲜,能错过?不存在的的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机多媒体中的媒体种类,多媒体计算机中
- 下一篇: 四川大学计算机考研信息汇总