41

MLSQL全系Docker化

 5 years ago
source link: http://www.jianshu.com/p/dd8684d0499d?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

前言

如何让用户最快的去体验MLSQL,是我们一直追求的。按v1.1.7的发布路线图,我们在这个版本里会完成所有组件的的docker化,未来我们很快也会提供云端功能的体验,让大家在MLSQL官网/控制台迅速将MLSQL集群部署到自己的阿里云账号上。

如何使用

MLSQL包含三个部分:

  1. MLSQL Engine
  2. MLSQL Cluster (集群管理器)
  3. MLSQL Console (MLSQL 控制台)

其中第二个,第三个依赖MySQL数据库。

我们提供了几个脚本方便大家依次部署:

  1. Docker network
  2. DB 配置
  3. MLSQL Engine
  4. MLSQL Console

如果大家还要部署MLSQL Cluster,则需要移步到 streamingpro-cluster/dev

Docker使用步骤

  1. 克隆 mlsql console项目,主要是为了获取脚本:
git clone https://github.com/allwefantasy/mlsql-api-console .
cd mlsql-api-console/dev
  1. 配置网络
./run-network.sh
  1. 启动DB并且创建数据库和表
./run-db.sh

启动会提示连接报错,千万别慌张,这个是我们在检查MySQL何时Ready以方便写入数据。

  1. 启动MLSQL Engine
./run-single-mlsql-server.sh
  1. 启动MLSQL Console
./run-mlsql-console.sh
  1. 在Chrome访问url 网址 http://127.0.0.1:9002,看到登录界面
aEfeuur.png!web

点击右上方注册,输入邮箱和密码

YRrInmm.png!web

image.png

注册成功会自动进入控制台界面,然后参看 MLSQL 控制台预览版 推出啦 这篇了解其他功能。

如何使用启动mlsql-cluster

进入该项目, streamingpro-cluster/dev

分别运行 run-db.sh /run-mlsql-cluster.sh 即可。 不过目前cluster 还没有纳入console管理,全部通过API操作,大家可以先不管。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK