forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
17 lines
3.8 KiB
HTML
17 lines
3.8 KiB
HTML
<a name="EN-US_TOPIC_0000001188482216"></a><a name="EN-US_TOPIC_0000001188482216"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body0000001117198482"><div class="p" id="EN-US_TOPIC_0000001188482216__p8818114882415"><span id="EN-US_TOPIC_0000001188482216__ph188301950102311">GaussDB(DWS)</span> allows you to export ORC data to MRS using an HDFS foreign table. You can specify the export mode and export data format in the foreign table. Data is exported from GaussDB(DWS) in parallel using multiple DNs and stored in HDFS. In this way, the overall export performance is improved.<ul id="EN-US_TOPIC_0000001188482216__ul36531438163113"><li id="EN-US_TOPIC_0000001188482216__en-us_topic_0000001145491123_en-us_topic_0117407657_l31f934f062fc4d73bb806420f4e0ab2a">The CN only plans data export tasks and delivers the tasks to DNs for execution. In this case, the CN is released to process external requests.</li><li id="EN-US_TOPIC_0000001188482216__en-us_topic_0000001145491123_en-us_topic_0117407657_ldd50fb5c0ad54fe6834d26dfefb17575">Every DN is involved in data export, and the computing capabilities and bandwidths of all the DNs are fully leveraged to export data.</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001188482216__en-us_topic_0117407657_u8cb2994a33d84a4587e0a4ed60c9219f"><li id="EN-US_TOPIC_0000001188482216__li03395213277">Multiple HDFS servers can export data concurrently. The export path can be empty. The naming rule of the path must be the same as that of the exported file.</li><li id="EN-US_TOPIC_0000001188482216__li1659182513013">MRS connects to GaussDB(DWS) cluster nodes. The export rate is affected by the network bandwidth.</li><li id="EN-US_TOPIC_0000001188482216__li529717211107">Data files in the ORC format are supported.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188482216__section16167108388"><h4 class="sectiontitle">Naming Rules of Exported Files</h4><p id="EN-US_TOPIC_0000001188482216__p1711432817103">The rules for naming ORC data files exported from <span id="EN-US_TOPIC_0000001188482216__ph623521051917">GaussDB(DWS)</span> are as follows:</p>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0000001188482216__ol820017121092"><li id="EN-US_TOPIC_0000001188482216__li534222815912">Data exported to MRS (HDFS): When data is exported from a DN, the data is stored in HDFS in the segment format. The file is named in the format of <strong id="EN-US_TOPIC_0000001188482216__b10101142617582">mpp_</strong><em id="EN-US_TOPIC_0000001188482216__i610192645819">Database name</em><strong id="EN-US_TOPIC_0000001188482216__b161011326175814">_</strong><em id="EN-US_TOPIC_0000001188482216__i101029262582">Schema name</em><strong id="EN-US_TOPIC_0000001188482216__b11028265582">_</strong><em id="EN-US_TOPIC_0000001188482216__i10102162619588">Table name</em><strong id="EN-US_TOPIC_0000001188482216__b20102132635812">_</strong><em id="EN-US_TOPIC_0000001188482216__i121031326155817">Node name</em><strong id="EN-US_TOPIC_0000001188482216__b210318264587">_</strong><em id="EN-US_TOPIC_0000001188482216__i201041626135812">n</em><strong id="EN-US_TOPIC_0000001188482216__b41047262581">.orc</strong>. <em id="EN-US_TOPIC_0000001188482216__i166961840154051">n</em> is a natural number starting from 0 in ascending order, for example, 0, 1, 2, 3.</li><li id="EN-US_TOPIC_0000001188482216__li838914361915">You are advised to export data from different clusters or databases to different paths. The maximum size of an ORC file is 128 MB, and that of a stripe file is 64 MB.</li><li id="EN-US_TOPIC_0000001188482216__li14301185618912">After the export is complete, the <strong id="EN-US_TOPIC_0000001188482216__b39333862954051">_SUCCESS</strong> file is generated.</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0159.html">Exporting ORC Data to MRS</a></div>
|
|
</div>
|
|
</div>
|
|
|