forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
23 lines
3.4 KiB
HTML
23 lines
3.4 KiB
HTML
<a name="EN-US_TOPIC_0000001145894717"></a><a name="EN-US_TOPIC_0000001145894717"></a>
|
|
|
|
<h1 class="topictitle1">Planning Data Export</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001145894717__s1e27c609a00046b6b20621d981545a1c"><h4 class="sectiontitle">Scenarios</h4><p id="EN-US_TOPIC_0000001145894717__ac2c1dd51675f4551912ec79c2eedaae1">Before you use GDS to export data from a cluster, prepare data to be exported and plan the export path.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145894717__s52f8ed441f404364b3ff8229d002c05a"><h4 class="sectiontitle">Planning an Export Path</h4><ul id="EN-US_TOPIC_0000001145894717__ul194341640526"><li id="EN-US_TOPIC_0000001145894717__li94348401925"><strong id="EN-US_TOPIC_0000001145894717__en-us_topic_0117443419_b50455901182733">Remote</strong> mode</li></ul>
|
|
<ol id="EN-US_TOPIC_0000001145894717__en-us_topic_0117443419_ol78687516388"><li id="EN-US_TOPIC_0000001145894717__l5393bade416c4543bc4cff0d4ffb3b7a"><span>Log in to the GDS data server as user <strong id="EN-US_TOPIC_0000001145894717__b842352706164548">root</strong> and create the <strong id="EN-US_TOPIC_0000001145894717__b842352706164555">/output_data</strong> directory for storing data files.</span><p><pre class="screen" id="EN-US_TOPIC_0000001145894717__sb23d45975eca43f0b33d8a4b54fcc2d1"><strong id="EN-US_TOPIC_0000001145894717__af6b79411196d4d75a5147fb9c3242f53">mkdir -p</strong> <em id="EN-US_TOPIC_0000001145894717__ad293e275b7994d4481f44002e2480bdc">/output_data</em></pre>
|
|
</p></li><li id="EN-US_TOPIC_0000001145894717__lbdddd9b7f5754807a37b7f078ca45e7a"><span>(Optional) Create a user and the user group to which it belongs. This user is used to start GDS and must have the write permission on the directory for storing data files.</span><p><pre class="screen" id="EN-US_TOPIC_0000001145894717__scac1bcb834494a208943aafc690de2d2"><strong id="EN-US_TOPIC_0000001145894717__aee2d549fa8014238996b44cccab2893a">groupadd </strong><em id="EN-US_TOPIC_0000001145894717__a97a6381948ad4a08ac6701033801cf66">gdsgr</em><em id="EN-US_TOPIC_0000001145894717__af0603c0fa3d045d1a1493d0710eabd44">p</em>
|
|
<strong id="EN-US_TOPIC_0000001145894717__a8ce43b9dee7a47238d2a6039654d7a01">useradd -g</strong> <em id="EN-US_TOPIC_0000001145894717__af299aa503bef4575b51cbb362a1aae07">gdsgrp </em><em id="EN-US_TOPIC_0000001145894717__i4850144164011">gdsuser</em></pre>
|
|
<p id="EN-US_TOPIC_0000001145894717__a24e73521f8b145fa81e15ba5d1ec4312">If the following information is displayed, the user and user group already exist. Skip this step.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001145894717__scaba25842b244a9b8497b2afd081e4ae">useradd: Account 'gdsuser' already exists.
|
|
groupadd: Group 'gdsgrp' already exists.</pre>
|
|
</p></li><li id="EN-US_TOPIC_0000001145894717__l05f5c08328f247a1aa548506d2f32e43"><span>Change the directory owner to <strong id="EN-US_TOPIC_0000001145894717__b2121205319477">gdsuser</strong>.</span><p><pre class="screen" id="EN-US_TOPIC_0000001145894717__s2ef1a194a58943278151f7f36302b005"><strong id="EN-US_TOPIC_0000001145894717__aec6f073712a34057870679da93253de8">chown -R </strong><em id="EN-US_TOPIC_0000001145894717__af17527f8338c41d784fb7cc953e3f0eb">gdsuser:gdsgrp /output_data </em></pre>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0261.html">Using GDS to Export Data to a Remote Server</a></div>
|
|
</div>
|
|
</div>
|
|
|