Learn how to configure data distribution, run initnodedatamap, and verify a GBase Database(GBase 8a) single-node cluster. This guide explains p 1 d 0, node status checks, and essential post-installation validation.
Installing GBase Database(GBase 8a) puts the required components in place, but more work is needed before the cluster is ready for data operations.
After installation, the next steps are to configure data distribution, initialize the data mapping, and verify the cluster state. These steps are important even when GCware, GCluster, and GNode all run on one virtual machine.
This guide assumes that installation has completed and that the generated gcChangeInfo.xml file is available.
Step 1: Switch to the Installation User
Switch to the gbase user and load the environment configured for the installation.
su - gbase
source ~/.bash_profile
Confirm that the environment variables and executable paths point to the intended GBase Database installation.
If the expected commands are unavailable, check the environment configuration before proceeding.
Step 2: Configure Data Distribution
After installation, gcinstall generates gcChangeInfo.xml for the distribution workflow. Use the generated file according to the instructions for your installed version rather than creating a replacement manually.
For the single-node example, run:
gcadmin distribution gcChangeInfo.xml p 1 d 0
The parameters represent the shard and replica configuration:
-
p 1specifies one data shard. -
d 0specifies zero replicas.
This is a minimal configuration example for a single-node learning environment. There is no second node available to host a replica, so the configuration does not provide replica-based redundancy.
Do not treat these values as universal defaults for production. Production distribution must be designed around the cluster topology, data placement requirements, and availability objectives.
Step 3: Initialize the Data Mapping
Distribution and data map initialization are separate stages in the deployment workflow.
After distribution completes, connect to the cluster using the appropriate administrative credentials:
gccli -uroot
Then run the initialization command:
initnodedatamap;
Follow the execution and permission requirements documented for your GBase Database(GBase 8a) version.
The key distinction is that distribution establishes the intended data layout, while initnodedatamap performs the subsequent data mapping initialization. Do not skip the initialization stage simply because the cluster has only one machine.
Step 4: Verify the Cluster State
After completing distribution and initialization, inspect the cluster status.
Use the appropriate administrative command to check whether the nodes are reported as OPEN. Then inspect the distribution information:
gcadmin showdistribution
Compare the reported shard and replica configuration with the values you specified.
For this example, you expect one shard and zero replicas. However, matching shard and replica counts alone should not be treated as proof that every initialization step has succeeded. Review the command output and any reported errors, and complete the verification procedure required by your installed version.
Step 5: Change Initial Credentials and Test Basic Operations
Check the version-specific manual for the initial administrative password and change default credentials immediately.
Once the cluster has passed the relevant checks, create a test database and table, then verify basic data operations.
A practical validation sequence is:
- Confirm that the expected nodes are available.
- Verify the distribution configuration.
- Confirm that data mapping initialization completed successfully.
- Create a test database and table.
- Run a basic insert and query.
- Review the logs if any operation fails.
Start with a small test dataset before attempting larger data loads or performance tests.
Step 6: Troubleshoot Common Problems
If the cluster does not reach the expected state, revisit the earlier installation and configuration steps.
Node status is not OPEN
- Review the installation logs for the affected component.
- Check the host entries and NodeID values in
demo.options. - Verify network reachability and the required port configuration.
- Confirm that the environment preparation script and installation use consistent paths and account settings.
Distribution fails
- Confirm that
gcChangeInfo.xmlwas generated by the intended installation workflow. - Review the command arguments and the distribution error output.
- Check the configuration and node status before retrying.
Database operations fail after installation
- Confirm that distribution completed successfully.
- Verify that
initnodedatamapcompleted as required. - Check the cluster state and relevant logs before assuming the SQL statement itself is the problem.
For multi-VC environments, follow the version-specific procedure for each relevant Virtual Cluster. Completing distribution and initialization in one VC does not automatically prove that every other VC is ready.
Step 7: Understand the Limits of a Single-Node Cluster
A single-node GBase Database(GBase 8a) deployment is useful for learning, installation practice, and selected functional validation. It is not a substitute for a production cluster.
With p 1 d 0, the configuration has one shard and no replicas. A failure of the only machine can make the entire environment unavailable. A 2-vCPU, 4-GB VM is a learning baseline, not a performance benchmark or production sizing recommendation.
Before handing over the environment, record:
- The installation package name and version.
- The host configuration and NodeID values.
- The distribution command and verification output.
- The initialization result.
- The installation and troubleshooting logs.
These records make it easier to reproduce the setup and diagnose problems later.
The key takeaway is simple: installation deploys the components, distribution configures the data layout, and initialization prepares the data mapping. Following the documented sequence makes GBase Database deployment more repeatable and troubleshooting more systematic.
Top comments (1)
Is skipping initnodedatamap the mistake most first-timers make here?