Planning Data Export
Scenarios
Before you use GDS to export data from a cluster, prepare data to export and plan the export path.
Planning an Export Path
- Remote mode
- (Optional) Create a user and a user group. The user is used to start GDS and must have the write permission on the directory for storing data files.
groupadd gdsgrp useradd -g gdsgrp gdsuser
If the following information is displayed, the user and user group already exist. Skip this step.
useradd: Account 'gdsuser' already exists. groupadd: Group 'gdsgrp' already exists.
- Create the /output_data directory for storing exported data files.
mkdir -p /output_data
- Change the directory owner to gdsuser.
chown -R gdsuser:gdsgrp /output_data
- Local mode
- Create the /output_data directory for storing data files on each DN in the cluster.
mkdir -p /output_data
- Change the directory owner to omm.
chown -R omm:dbgrp /output_data
- Set location to a local path. You do not need to specify the file name.
For example, to store data files to the /output_data/ directory, set the location parameter to file:///output_data/ when you create a foreign table.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot