首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

IBM dashDB Local 从入门到精通,第 3 部分 dashDB local SMP Linux 安装指南(8)

IBM dashDB Local 从入门到精通,第 3 部分 dashDB local SMP Linux 安装指南(8)

4 获取 dashDB Local 镜像
如果从 Docker Hub 来获取 dashDB Local 镜像,需要执行以下步骤:
  • 使用如下命令登录 Docker Hub:
1
2
3
4
5
docker login -u=docker_hub_id -e=email -p='password'
本次示例:
[root@dashdb mnt]# <strong>docker login -u=gyzhang -e=gyzhang@cn.ibm.com -p='</strong><strong>xxxxxx</strong><strong>'</strong><br>
Flag --email has been deprecated, will be removed in 1.13.
Login Succeeded




  • 使用如下命令抓取 dashDB Local 最新版本镜像
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
For Linux operating systems on X86 hardware:
docker pull ibmdashdb/local:latest-linux
For the Ubuntu operating system on POWER LE hardware:
docker pull ibmdashdb/local:latest-ppcle
本次示例:
docker pull ibmdashdb/local:latest-linux
Unable to find image 'ibmdashdb/local:latest-linux' locally
latest-linux: Pulling from ibmdashdb/local
a3ed95caeb02: Pulling fs layer
da71393503ec: Pulling fs layer
6c10d4976ba0: Pull complete
. . . . . .
Digest:
sha256:44c2a86d69f75cf8edbbd2e9731ff2a4765c2ac6b445923261285c7e8f25306a
Statusownloaded newer image for ibmdashdb/local:latest-linux
8ce6b3be54c575290d0fdb95a4cacb5afdb44af1694229494fe5767631482f3b




从上述命令输出我们可以看到,ibmdashdb/local:latest-linux Docker                镜像被成功下载,其中,ibmdashdb/local 是镜像名称,latest-linux 是镜像的标记,标明该镜像是 linux                的镜像,同时该版本是目前最新版本。
如果从 Box 来获取 dashDB Local 镜像,需要执行以下步骤:
  • 下载 dashDB Local 安装包
1
2
3
4
5
6
For the Ubuntu operating system on POWER LE hardware:
dashdb_local_version_ppcle.tar.gz
For Linux operating systems on other hardware:
dashdb_local_version.tar.gz
本次示例:
使用dashdb_local_version.tar.gz




  • 拷贝 dashDB Local 安装包到指定目录
  • 运行如下命令解压安装包
1
2
gunzip dashdb_local_version.tar.gz
gunzip dashdb_local_version_ppcle.tar.gz




  • 运行如下命令获取 dashDB Local 镜像
1
2
docker load < dashdb_local_version.tar<br>
docker load <dashdb_local_version_ppcle.tar




5 创建、初始化 dashDB Local                容器
1
2
3
4
5
6
7
8
9
10
11
12
13
For the Ubuntu operating system on POWER LE hardware:
docker run -d -it --privileged=true --net=host --name=dashDB
-v /mnt/clusterfs:/mnt/bludata0
-v /mnt/clusterfs:/mnt/blumeta0 ibmdashdb/local:latest-ppcle
For Linux operating systems on other hardware:
docker run -d -it --privileged=true --net=host --name=dashDB
-v /mnt/clusterfs:/mnt/bludata0
-v /mnt/clusterfs:/mnt/blumeta0 ibmdashdb/local:latest-linux
本次示例:
[root@dashdb mnt]#<strong> docker run -d -it --privileged=true --net=host
--name=dashDB -v /mnt/clusterfs:/mnt/bludata0 -v /mnt/clusterfs:/mnt/blumeta0
ibmdashdb/local:latest-linux</strong>
ab5570cf56ca6a20df6d1f9c2fa13b6572793eee32ae094a378fc43ef9713156




我们也可以通过执行如下命令创建、初始化 dashDB 容器:
1
2
3
4
docker run -d -it --privileged=true --net=host --name=dashDB -e
ENABLE_ORACLE_COMPATIBILITY='YES' -e TIMEZONE='Asia/Shanghai' -v
/mnt/clusterfs:/mnt/bludata0 -v /mnt/clusterfs:/mnt/blumeta0
ibmdashdb/local:latest-linux




6 验证 dashDB Local                    容器部署是否成功
我们通过如下命令来检查 dashDB Local 容器部署是否成功:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[root@dashdb mnt]# docker logs --follow dashDB
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK
+SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization docker.
Detected architecture x86-64.
Welcome to CentOS Linux 7 (Core)!
Set hostname to <dashdb>.
. . . . . .
[17487.033275] start_dashDB_local.sh[208]: SUMMARY
[17487.033459] start_dashDB_local.sh[208]: LDAPrunning : SUCCESS
[17487.033637] start_dashDB_local.sh[208]: dashDBtablesOnline : SUCCESS
[17487.033823] start_dashDB_local.sh[208]: WebConsole : SUCCESS
[17487.034060] start_dashDB_local.sh[208]: dashDBconnectivity : SUCCESS
[17487.034236] start_dashDB_local.sh[208]: dashDBrunning : SUCCESS
[17487.061464] start_dashDB_local.sh[208]: ***********************************************************
[17487.111666] start_dashDB_local.sh[208]: ******* Congratulations! **********
[17487.112001] start_dashDB_local.sh[208]: ** You have successfully deployed dashDB **
[17487.112212] start_dashDB_local.sh[208]: ***********************************************************
[17487.112408] start_dashDB_local.sh[208]: *
[17487.112608] start_dashDB_local.sh[208]: * Next steps:
[17487.112860] start_dashDB_local.sh[208]: *
[17488.399811] start_dashDB_local.sh[208]: * 1. Please use Ctrl+c key-sequence to detach from the Docker logs console.
[17488.400135] start_dashDB_local.sh[208]: * 2. Log in to the web console using the following information:
[17488.400372] start_dashDB_local.sh[208]: * URL:https://192.168.1.128:8443
[17488.400567] start_dashDB_local.sh[208]: * Default user ID: bluadmin
[17488.400755] start_dashDB_local.sh[208]: * Default password :YzZjODFhODNkMTU2
[17488.400957] start_dashDB_local.sh[208]: * 3. For improved security,change the default bluadmin password
[17488.401137] start_dashDB_local.sh[208]: * byrunning "docker exec -it dashDB setpass <new password>". Other user management
[17488.401313] start_dashDB_local.sh[208]: * should be done via the web console.
[17488.401545] start_dashDB_local.sh[208]: *
[17488.401721] start_dashDB_local.sh[208]:***********************************************************




从上述 docker logs 我们可以看到,dashDB Local 容器被成功创建并部署。在 Linux SMP 环境下,dashDB Local                部署过程也会启动 dashDB Local 服务,所以,我们可以看到 dashDB Local 成功部署的信息,也可以看到 web console                URL 及登录信息。我们可以通过访问 web console URL: 来使用、管理、监控 dashDB Local 容器,系统默认创建了                bluadmin 用户,其默认口令为 YzZjODFhODNkMTU2,从安全角度考虑,我们建议修改默认口令。
我们通过按 Ctrl-C 键退出 docker logs。
7 修改 bluadmin 用户默认口令
我们可以通过下述命令修改 bluadmin 用户默认口令:
1
2
[root@dashdb mnt]# <strong>docker exec -it dashDB setpass passw0rd</strong>
Password successfully updated




8 通过 web console 管理、使用 dashDB                    Local
我们通过访问 URL:/登录 dashDB Local web console 来管理、使用                dashDB Local,确认 security exception 后,我们会看到 dashDB console 登录界面,使用 bluadmin                用户及其口令登录成功后,我们会看到如下界面,表明 dashDB Local 实例可以正常使用了,我们安装、设置工作顺利完成。
图                1. dashDB Local web 管理客户端结论通过上述介绍,我们对 IBM dashDB Local 在 Linux 环境下安装及配置方法进行了比较详尽的介绍。dashDB Local                采用目前比较热门的 Docker 容器技术进行部署,安装简洁、灵活,既可以在自己的笔记本上部署,也可以在 Linux                集群环境下部署,大家可以自己部署一个 IBM dashDB Local 环境来更好的了解 IBM 云数据仓库解决方案。
返回列表