Skip to content

Commit

Permalink
update 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yangj1211 committed Apr 2, 2024
1 parent 41e17a5 commit b5c8437
Show file tree
Hide file tree
Showing 24 changed files with 511 additions and 177 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ These introductions will help you go through you the key concepts and user detai

### Roadmap

MatrixOne v1.1.1 has been released, you can see [Release Notes](../../Release-Notes/v1.1.1.md) know more information.
MatrixOne v1.1.2 has been released, you can see [Release Notes](../../Release-Notes/v1.1.2.md) know more information.

For the long-term project roadmap, please refer to [MatrixOne roadmap](https://github.com/matrixorigin/matrixone/issues/613) for a more general overview.

Expand Down
2 changes: 1 addition & 1 deletion docs/MatrixOne/Deploy/deploy-MatrixOne-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ mysql -h $(kubectl get svc/mo-tp-cn -n mo-hn -o jsonpath='{.spec.clusterIP}') -P
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 163
Server version: 8.0.30-MatrixOne-v1.1.1 MatrixOne
Server version: 8.0.30-MatrixOne-v1.1.2 MatrixOne

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Expand Down
2 changes: 1 addition & 1 deletion docs/MatrixOne/Deploy/update-MatrixOne-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ According to the introduction in [MatrixOne Distributed Cluster Deployment](depl
root@master0 ~]# mysql -h $(kubectl get svc/mo-tp-cn -n mo-hn -o jsonpath='{.spec.clusterIP}') -P 6001 -uroot -p111
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 1005
Server version: 8.0.30-MatrixOne-v1.1.1 MatrixOne
Server version: 8.0.30-MatrixOne-v1.1.2 MatrixOne
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export SEATNUNNEL_HOME="/root/seatunnel"
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
```

2. Use the [mo_ctl](https://docs.matrixorigin.cn/1.1.1/MatrixOne/Maintain/mo_ctl/) tool to import the MySQL DDL statements into MatrixOne directly. Execute the following command:
2. Use the [mo_ctl](https://docs.matrixorigin.cn/1.1.2/MatrixOne/Maintain/mo_ctl/) tool to import the MySQL DDL statements into MatrixOne directly. Execute the following command:

```shell
mo_ctl sql /root/mysql.sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To test the SSL configuration, perform the following steps:
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 8.0.30-MatrixOne-v1.1.1 MatrixOne
Server version: 8.0.30-MatrixOne-v1.1.2 MatrixOne
Protocol version: 10
Connection: 127.0.0.1 via TCP/IP
Client characterset: utf8mb4
Expand Down
2 changes: 1 addition & 1 deletion docs/MatrixOne/Develop/connect-mo/database-client-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Make sure you have already [installed and launched MatrixOne](../../Get-Started/
```
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1031
Server version: 8.0.30-MatrixOne-v1.1.1 MatrixOne
Server version: 8.0.30-MatrixOne-v1.1.2 MatrixOne
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The PyMySQL is a pure-Python MySQL client library.
```
> python3 pymysql_connect_matrixone.py
Database version : 8.0.30-MatrixOne-v1.1.1
Database version : 8.0.30-MatrixOne-v1.1.2
```
## Using sqlalchemy connect to MatrixOne
Expand Down
2 changes: 1 addition & 1 deletion docs/MatrixOne/Develop/export-data/select-into-outfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Make sure you have already [Deployed standalone MatrixOne](../../Get-Started/ins
If you install MatrixOne by `docker`, the directory is inside the docker image by default. To work with local directory, you need to bind a local directory to the container. In the following example, the local file system path `${local_data_path}/mo-data` is binded to the MatrixOne docker image, with a mapping to the `/mo-data` path. For more information, see [Docker Mount Volume tutorial](https://www.freecodecamp.org/news/docker-mount-volume-guide-how-to-mount-a-local-directory/).

```
sudo docker run --name <name> --privileged -d -p 6001:6001 -v ${local_data_path}/mo-data:/mo-data:rw matrixorigin/matrixone:1.1.1
sudo docker run --name <name> --privileged -d -p 6001:6001 -v ${local_data_path}/mo-data:/mo-data:rw matrixorigin/matrixone:1.1.2
```

### Steps
Expand Down
4 changes: 2 additions & 2 deletions docs/MatrixOne/Develop/import-data/bulk-load/load-csv.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ __Note__: A `csv`(comma-separated values) file is a delimited text file that use
### Example using `Load data` with `docker` version
If you install MatrixOne by `docker`, the file system is inside the docker image by default. To work with local directory, you need to bind a local directory to the container. In the following example, the local file system path `~/tmp/docker_loaddata_demo/` is binded to the MatrixOne docker image, with a mapping to the `/ssb-dbgen-path` path inside the docker.
We will walk you through the whole process of loading data with MatrixOne 1.1.1 docker version in this example.
We will walk you through the whole process of loading data with MatrixOne 1.1.2 docker version in this example.
1. Download the dataset file and store the data in *~/tmp/docker_loaddata_demo/*:
Expand All @@ -114,7 +114,7 @@ We will walk you through the whole process of loading data with MatrixOne 1.1.1
3. Use Docker to launch MatrixOne, and mount the directory *~/tmp/docker_loaddata_demo/* that stores data files to a directory in the container. The container directory is */sb-dbgen-path* as an example:
```
sudo docker run --name matrixone --privileged -d -p 6001:6001 -v ~/tmp/docker_loaddata_demo/:/ssb-dbgen-path:rw matrixorigin/matrixone:1.1.1
sudo docker run --name matrixone --privileged -d -p 6001:6001 -v ~/tmp/docker_loaddata_demo/:/ssb-dbgen-path:rw matrixorigin/matrixone:1.1.2
```
4. Connect to MatrixOne server:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ select * from tool;

## Constraints

MatrixOne 1.1.1 version already supports MySQL table creation statements, so you can smoothly migrate MySQL tables to MatrixOne. However, it should be noted that during the migration process, some keywords incompatible with MySQL, such as `engine=`, will be automatically ignored in MatrixOne and will not affect the migration of the table structure.
MatrixOne 1.1.2 version already supports MySQL table creation statements, so you can smoothly migrate MySQL tables to MatrixOne. However, it should be noted that during the migration process, some keywords incompatible with MySQL, such as `engine=`, will be automatically ignored in MatrixOne and will not affect the migration of the table structure.

However, it should be noted that although MatrixOne supports MySQL table creation statements, manual modification is still required if the migrated table contains incompatible data types, triggers, functions, or stored procedures. For more detailed compatibility information, see [MySQL Compatibility](../../../Overview/feature/mysql-compatibility.md).
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Usage : mo_ctl [option_1] [option_2]
e.g. : mo_ctl deploy help
```
### 2. Set mo_ctl parameters (Optional)
### 2. Set mo_ctl parameters
Some parameters in the mo_ctl tool need to be set and you can view all current parameters through `mo_ctl get_conf`.
Expand All @@ -184,7 +184,7 @@ GCC_VERSION="8.5.0"
CLANG_VERSION="13.0"
GO_VERSION="1.20"
MO_GIT_URL="https://github.com/matrixorigin/matrixone.git"
MO_DEFAULT_VERSION="v1.1.1"
MO_DEFAULT_VERSION="v1.1.2"
GOPROXY="https://goproxy.cn,direct"
STOP_INTERVAL="5"
START_INTERVAL="2"
Expand All @@ -195,12 +195,13 @@ PPROF_OUT_PATH="/tmp/pprof-test/"
PPROF_PROFILE_DURATION="30"
```
Generally, the parameters that may need to be adjusted are as follows:
Generally, the parameters that need to be adjusted are as follows:
````
mo_ctl set_conf MO_PATH="/data/mo/matrixone" # Set custom MatrixOne download path
mo_ctl set_conf MO_GIT_URL="https://ghproxy.com/https://github.com/matrixorigin/matrixone.git" # For the problem of slow downloading from the original GitHub address, set the proxy download address
mo_ctl set_conf MO_DEFAULT_VERSION="v1.1.1" # Set the version of MatrixOne downloaded
mo_ctl set_conf MO_PATH="yourpath" # Set custom MatrixOne download path
mo_ctl set_conf MO_GIT_URL="https://githubfast.com/matrixorigin/matrixone.git" # For the problem of slow downloading from the original GitHub address, set image download address
mo_ctl set_conf MO_DEFAULT_VERSION="v1.1.2" # Set the version of MatrixOne downloaded
mo_ctl set_conf MO_DEPLOY_MODE=git # Deployment Configuration
````
## Step 3: Get MatrixOne code
Expand All @@ -218,22 +219,22 @@ Depending on your needs, choose whether you want to keep your code up to date, o
=== "Get the MatrixOne(Stable Version) code to build"
```
mo_ctl deploy v1.1.1
mo_ctl deploy v1.1.2
```
## Step 4: Launch MatrixOne server
Launch the MatrixOne service through the `mo_ctl start` command.
If the operation is regular, the following log will appear. The relevant operation logs of MatrixOne will be in `/data/mo/logs/`.
If the operation is regular, the following log will appear. The relevant operation logs of MatrixOne will be in `/yourpath/matrixone/logs/`.
```
root@VM-16-2-debian:~# mo_ctl start
2023-07-07_09:55:01 [INFO] No mo-service is running
2023-07-07_09:55:01 [INFO] Starting mo-service: cd /data/mo//matrixone/ && /data/mo//matrixone/mo-service -daemon -debug-http :9876 -launch /data/mo//matrixone/etc/launch/launch.toml >/data/mo//logs/stdout-20230707_095501.log 2>/data/mo//logs/stderr-20230707_095501.log
2023-07-07_09:55:01 [INFO] Starting mo-service: cd /data/mo/matrixone/matrixone/ && /data/mo/matrixone/matrixone/mo-service -daemon -debug-http :9876 -launch /data/mo/matrixone/matrixone/etc/launch/launch.toml >/data/mo/matrixone/logs/stdout-20230707_095501.log 2>/data/mo/matrixone/logs/stderr-20230707_095501.log
2023-07-07_09:55:01 [INFO] Wait for 2 seconds
2023-07-07_09:55:03 [INFO] At least one mo-service is running. Process info:
2023-07-07_09:55:03 [INFO] root 748128 1 2 09:55 ? 00:00:00 /data/mo//matrixone/mo-service -daemon -debug-http :9876 -launch /data/mo//matrixone/etc/launch/launch.toml
2023-07-07_09:55:03 [INFO] root 748128 1 2 09:55 ? 00:00:00 /data/mo/matrixone/matrixone/mo-service -daemon -debug-http :9876 -launch /data/mo/matrixone/matrixone/etc/launch/launch.toml
2023-07-07_09:55:03 [INFO] Pids:
2023-07-07_09:55:03 [INFO] 748128
2023-07-07_09:55:03 [INFO] Start succeeded
Expand All @@ -255,7 +256,7 @@ root@VM-16-2-debian:~# mo_ctl connect
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 8.0.30-MatrixOne-v1.1.1 MatrixOne
Server version: 8.0.30-MatrixOne-v1.1.2 MatrixOne

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Expand All @@ -266,6 +267,7 @@ owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

```
!!! note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ The Debian11.1 version does not have MySQL Client installed by default, so it ne
```bash
mkdir -p /root/matrixone & cd /root/
wget https://github.com/matrixorigin/matrixone/releases/download/v1.1.1/mo-v1.1.1-linux-x86_64.zip
unzip -d matrixone/ mo-v1.1.1-linux-x86_64.zip
wget https://github.com/matrixorigin/matrixone/releases/download/v1.1.2/mo-v1.1.2-linux-x86_64.zip
unzip -d matrixone/ mo-v1.1.2-linux-x86_64.zip
```
Binary for ARM architecture system:
```bash
mkdir -p /root/matrixone & cd /root/
wget https://github.com/matrixorigin/matrixone/releases/download/v1.1.1/mo-v1.1.1-linux-arm64.zip
unzip -d matrixone/ mo-v1.1.1-linux-arm64.zip
wget https://github.com/matrixorigin/matrixone/releases/download/v1.1.2/mo-v1.1.2-linux-arm64.zip
unzip -d matrixone/ mo-v1.1.2-linux-arm64.zip
```
=== "**Downloading method 2: Using `curl` to install binary packages**"
Expand All @@ -114,21 +114,21 @@ The Debian11.1 version does not have MySQL Client installed by default, so it ne
```bash
mkdir -p /root/matrixone & cd /root/
curl -OL https://github.com/matrixorigin/matrixone/releases/download/v1.1.1/mo-v1.1.1-linux-x86_64.zip
unzip -d matrixone/ mo-v1.1.1-linux-x86_64.zip
curl -OL https://github.com/matrixorigin/matrixone/releases/download/v1.1.2/mo-v1.1.2-linux-x86_64.zip
unzip -d matrixone/ mo-v1.1.2-linux-x86_64.zip
```
Binary for ARM architecture system:
```bash
mkdir -p /root/matrixone & cd /root/
curl -OL https://github.com/matrixorigin/matrixone/releases/download/v1.1.1/mo-v1.1.1-linux-arm64.zip
unzip -d matrixone/ mo-v1.1.1-linux-arm64.zip
curl -OL https://github.com/matrixorigin/matrixone/releases/download/v1.1.2/mo-v1.1.2-linux-arm64.zip
unzip -d matrixone/ mo-v1.1.2-linux-arm64.zip
```
=== "**Downloading method 3: Go to the page and download**"
If you want a more intuitive way to download the page, go to the [version 1.1.1](https://github.com/matrixorigin/matrixone/releases/tag/v1.1.1), pull down to find the **Assets** column, and click the installation package *mo-v1.1.1-linux-x86_64.zip* or *mo-v1.1.1-linux-arm64.zip* can be downloaded.
If you want a more intuitive way to download the page, go to the [version 1.1.2](https://github.com/matrixorigin/matrixone/releases/tag/v1.1.2), pull down to find the **Assets** column, and click the installation package *mo-v1.1.2-linux-x86_64.zip* or *mo-v1.1.2-linux-arm64.zip* can be downloaded.
## Step 3: Install the mo_ctl tool
Expand All @@ -144,28 +144,33 @@ wget https://raw.githubusercontent.com/matrixorigin/mo_ctl_standalone/main/insta
### 2. Set mo_ctl parameters
Using the following command sets the MatrixOne binary decompression file directory to the `MO_PATH` parameter of mo_ctl. mo_ctl will automatically look for the `matrixone` folder in `MO_PATH`.
The parameters that need to be adjusted are as follows:
```
mo_ctl set_conf MO_PATH="/root"
```
````
mo_ctl set_conf MO_PATH="/yourpath/mo-v1.1.2-xx-xx" # Set the MO_PATH to the directory where the binary files are extracted
mo_ctl set_conf MO_CONF_FILE="/yourpath/mo-v1.1.2-xx-xx/etc/launch/launch.toml" # Set the MO_CONF_FILE path
mo_ctl set_conf MO_DEPLOY_MODE=binary #Deployment Configuration
````
## Step 4: Launch MatrixOne server
Launch the MatrixOne service through the `mo_ctl start` command.
If the operation is regular, the following log will appear. The relevant operation logs of MatrixOne will be in `/data/mo/logs/`.
If the operation is regular, the following log will appear. The relevant operation logs of MatrixOne will be in `/yourpath/mo-v1.1.2-xx-xx/matrixone/logs/`.
```
root@VM-16-2-debian:~# mo_ctl start
2023-07-07_09:55:01 [INFO] No mo-service is running
2023-07-07_09:55:01 [INFO] Starting mo-service: cd /data/mo//matrixone/ && /data/mo//matrixone/mo-service -daemon -debug-http :9876 -launch /data/mo//matrixone/etc/launch/launch.toml >/data/mo//logs/stdout-20230707_095501.log 2>/data/mo//logs/stderr-20230707_095501.log
2023-07-07_09:55:01 [INFO] Wait for 2 seconds
2023-07-07_09:55:03 [INFO] At least one mo-service is running. Process info:
2023-07-07_09:55:03 [INFO] root 748128 1 2 09:55 ? 00:00:00 /data/mo//matrixone/mo-service -daemon -debug-http :9876 -launch /data/mo//matrixone/etc/launch/launch.toml
2023-07-07_09:55:03 [INFO] Pids:
2023-07-07_09:55:03 [INFO] 748128
2023-07-07_09:55:03 [INFO] Start succeeded
2024-03-07 14:34:04.942 UTC+0800 [INFO] No mo-service is running
2024-03-07 14:34:04.998 UTC+0800 [INFO] Get conf succeeded: MO_DEPLOY_MODE="binary"
2024-03-07 14:34:05.024 UTC+0800 [INFO] GO memory limit(Mi): 14745
2024-03-07 14:34:05.072 UTC+0800 [INFO] Starting mo-service: cd /Users/admin/mo-v1.1.2-linux-arm64/ && GOMEMLIMIT=14745MiB /Users/admin/mo-v1.1.2-linux-arm64/mo-service -daemon -debug-http :9876 -launch /Users/admin/mo-v1.1.2-linux-arm64/etc/launch/launch.toml >/Users/admin/mo-v1.1.2-linux-arm64/matrixone/logs/stdout-20240307_143405.log 2>/Users/admin/mo-v1.1.2-linux-arm64/matrixone/logs/stderr-20240307_143405.log
2024-03-07 14:34:05.137 UTC+0800 [INFO] Wait for 2 seconds
2024-03-07 14:34:07.261 UTC+0800 [INFO] At least one mo-service is running. Process info:
501 27145 1 0 2:34下午 ?? 0:00.18 /Users/admin/mo-v1.1.2-linux-arm64/mo-service -daemon -debug-http :9876 -launch /Users/admin/mo-v1.1.2-linux-arm64/etc/launch/launch.toml
2024-03-07 14:34:07.284 UTC+0800 [INFO] List of pid(s):
27145
2024-03-07 14:34:07.308 UTC+0800 [INFO] Start succeeded

```
!!! note
Expand All @@ -179,14 +184,13 @@ This command will invoke the MySQL Client tool to connect to the MatrixOne servi
```
root@VM-16-2-debian:~# mo_ctl connect
2023-07-07_10:30:20 [INFO] Checking connectivity
2023-07-07_10:30:20 [INFO] Ok, connecting for user ...
mysql: [Warning] Using a password on the command line interface can be insecure.
2024-03-07 14:34:59.902 UTC+0800 [INFO] Checking connectivity
2024-03-07 14:34:59.942 UTC+0800 [INFO] Ok, connecting for user ...
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 8.0.30-MatrixOne-v1.1.1 MatrixOne
Your MySQL connection id is 426
Server version: 8.0.30-MatrixOne-v1.1.2 MatrixOne

Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
Expand All @@ -195,6 +199,7 @@ owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

```
!!! note
Expand Down
Loading

0 comments on commit b5c8437

Please sign in to comment.