Version 95 of the China-domestically developed GBase 8a MPP database from GBASE supports Virtual Clusters (VC), each with its own compute services for resource isolation. The short answer on naming: Chinese characters are not supported. A VC name may contain only upper- and lower-case letters, digits and underscores, with a maximum length of 64 characters. The gbase command line enforces this in two distinct ways.
The first character must be a letter
[gbase@gbase_rh7_003 statemachine]$ gcadmin renamevc vcname00001 123
vc name first character shall be english character [a - z] or [A - Z]
gcadmin rename virtual cluster failed
[gbase@gbase_rh7_003 statemachine]$
Starting the name with a digit is rejected before anything else is checked — the first character has to be [a - z] or [A - Z].
Full-width characters, including Chinese, are rejected
[gbase@gbase_rh7_003 statemachine]$ gcadmin renamevc vcname00001 vc_第一
vc name invalid, it shall be english character [a - z] or [A - Z] or digit [0 - 9] or character '_'
first character shall be english character
gcadmin rename virtual cluster failed
[gbase@gbase_rh7_003 statemachine]$
Here the underscore is legal, but the full-width Chinese characters are not: the allowed alphabet is letters, digits and _. Note the error also repeats the first-character rule, so both constraints are reported together.
Going forward, treat VC names as identifiers in the database's metadata rather than display labels: keep them ASCII, start with a letter, and put any localised description elsewhere. That avoids the whole class of full-width-character failures, and it keeps scripts that call gcadmin portable across gbase clusters.
Top comments (0)