Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装步骤疑问 #13

Closed
Hoxxx opened this issue Oct 22, 2021 · 3 comments
Closed

安装步骤疑问 #13

Hoxxx opened this issue Oct 22, 2021 · 3 comments
Labels
question Further information is requested

Comments

@Hoxxx
Copy link

Hoxxx commented Oct 22, 2021

源码安装参考文档中

启动PolarDB-X DN
此步骤启动一个mysql进程,作为metadb和dn
参考附录中的mysql配置文件,可进行相应修改,默认使用 4886 作为 mysql端口,32886 作为私有协议端口
默认使用 /u01/my3306 作为mysql数据目录,可以修改成其他目录
注意:启动 DN 需要使用非 root 账号完成

启动mysql:

mkdir -p /u01/my3306/{data,log,run,tmp,mysql}
/u01/mysql/bin/mysqld --defaults-file=my.cnf --initialize-insecure
/u01/mysql/bin/mysqld --defaults-file=my.cnf

这里的mysql是需要单独装一个mysql server端?还是客户端?还是需要软链接到对应目录下?

@agapple
Copy link
Member

agapple commented Oct 22, 2021

需要启动MySQL server,PolarDB-X的DN和GMS在开发环境可以复用一个MySQL进程

@Oldbread3 Oldbread3 added the question Further information is requested label Oct 22, 2021
@Hoxxx
Copy link
Author

Hoxxx commented Oct 23, 2021

@agapple mysql server版本有限制吗?用MariaDB 10.3.9启动DN失败

[Warning] /usr/libexec/mysqld: unknown variable 'loose_polarx_port=32886'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_galaxyx_port=32886'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_polarx_max_connections=5000'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_cluster-info=127.0.0.1:14886@1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_cluster-id=5431'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_enable_gts=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_innodb_undo_retention=1800'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_log_sql_info=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_log_sql_info_index=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_indexstat=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_tablestat=1'
[ERROR] /usr/libexec/mysqld: unknown variable 'slave_parallel_type=LOGICAL_CLOCK'
[ERROR] Aborting

@Oldbread3
Copy link
Collaborator

Oldbread3 commented Oct 24, 2021

@agapple mysql server版本有限制吗?用MariaDB 10.3.9启动DN失败

[Warning] /usr/libexec/mysqld: unknown variable 'loose_polarx_port=32886'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_galaxyx_port=32886'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_polarx_max_connections=5000'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_cluster-info=127.0.0.1:14886@1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_cluster-id=5431'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_enable_gts=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_innodb_undo_retention=1800'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_log_sql_info=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_log_sql_info_index=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_indexstat=1'
[Warning] /usr/libexec/mysqld: unknown variable 'loose_tablestat=1'
[ERROR] /usr/libexec/mysqld: unknown variable 'slave_parallel_type=LOGICAL_CLOCK'
[ERROR] Aborting

CN 与 DN 通过 GalaxyGlue 模块通信,仅支持 https://github.com/ApsaraDB/galaxyengine 作为 DN 和 GMS

@Hoxxx Hoxxx closed this as completed Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants