返回首页

gbase数据、南大通用产品文档:GBase8a初始化hashmap 并进行数据重分布

更新日期:2024年09月11日

操作步骤
步骤1:初始化hashmap:
$ gccli -uroot
GBase client 9.5.3.17.117651. Copyright (c) 2004-2020, GBase.
All Rights
Reserved.
gbase> use vc vc1;
Query OK, 0 rows affected (Elapsed: 00:00:00.00)
gbase> initnodedatamap;
Query OK, 0 rows affected, 5 warnings (Elapsed: 00:00:01.45)
步骤2:执行数据重分布:
gbase> show variables like '%rebalanc%';
+-------------------------------------------------------+-----------+
| Variable_name
| Value
|
+-------------------------------------------------------+-----------+
| _t_gcluster_rebalance_mirror_node
| 0
|
| gcluster_load_rebalance_seed
| 5
|
| gcluster_rebalancing_concurrent_count
| 5
|
| gcluster_rebalancing_ignore_mirror
| OFF
|
| gcluster_rebalancing_immediate_recover_internal_table | OFF
|
| gcluster_rebalancing_parallel_degree
| 4
|
| gcluster_rebalancing_random_table_quick_mode
| 1
|
| gcluster_rebalancing_step
| 100000000 |
| gcluster_rebalancing_update_status_on_drop_table
| ON
|
+-------------------------------------------------------+-----------+
9 rows in set (Elapsed: 00:00:00.24)
gbase> rebalance instance;
Query OK, 2 rows affected (Elapsed: 00:00:01.45)
查看rebalance 状态:
gbase> select index_name, status, percentage
from
gclusterdb.rebalancing_status;
+------------+-----------+------------+
| index_name | status
| percentage |
+------------+-----------+------------+
| demo.t
| COMPLETED |
100 |
| demo.tt
| COMPLETED |
100 |
+------------+-----------+------------+
2 rows in set (Elapsed: 00:00:00.04)
gbase> quit
Bye

支持向量机(SVM)也是一种二元分类算法,支持向量机模型的一个显著的优点是
对噪声数据的鲁棒性。线性支持向量机采用线性超平面进行数据分类。
图5- 15 向量机算法
支持向量机模型是求解分割超平面与最近的训练数据的距离(称为边界)最大化
的问题。处于边界线上的点称为支持向量,当支持向量确定后,不在边界线上的
点的变化不会影响模型的结果,这个特性保证了支持向量机的鲁棒性。

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1428

使用 SQL 管理 API 来通过 SQL 语句远程地管理 GBase 8s 。
SQL 管理 API 由两个函数组成:admin() 和 task()。这些函数执行相同的操作,但返回
不同格式的结果。这些函数带有一个或多个定义操作的参数。许多操作是您也可通过命令
行实用程序完成的操作。使用 SQL 管理 API 函数的好处是,您可从其他数据库服务器远
程地运行它们;反之,您必须直接地连接到运行命令行实用程序命令的那台数据库服务器
上。
您可在 SQL 语句内调用 admin() 和 task() 函数,该语句可包括表达式,或您可使用
EXECUTE FUNCTION 语句来调用它们。在一个事务内运行 admin() 或 task() 函数,该事
务不包括任何其他语句。
在 sysadmin 数据库中定义 SQL 管理 API 函数。您必须连接到 sysadmin 数据库,或直
接地或远程地来运行这些函数。
仅下列用户可运行 SQL 管理 API 函数:
 用户 gbasedbt
 root 用户,如果将 sysadmin 数据库上的 Connect 权限授予该用户
 DBSA 组成员,如果将 sysadmin 数据库上的 Connect 权限授予该角色
 通过带有 grant admin 参数的 admin() 和 task() 函数授予 SQL 管理 API 命令
权限的用户。
为了复制文件中存在的存储空间、chunk 和日志,您可生成 SQL 管理 API 命令。为此,
请运行带有 -c 选项的 dbschema 实用程序。