forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
73 lines
10 KiB
HTML
73 lines
10 KiB
HTML
<a name="dli_01_0010"></a><a name="dli_01_0010"></a>
|
|
|
|
<h1 class="topictitle1">Exporting DLI Table Data to OBS</h1>
|
|
<div id="body1501291906720"><p id="dli_01_0010__p12368142105715">You can export data from a DLI table to OBS. During the export, a folder is created in OBS or the content in the existing folder is overwritten.</p>
|
|
<div class="section" id="dli_01_0010__section181111466568"><h4 class="sectiontitle">Precautions</h4><ul id="dli_01_0010__ul12225587299"><li id="dli_01_0010__li0222105872918">The exported file can be in JSON format, and the text format can only be UTF-8.</li><li id="dli_01_0010__li6222205822916">Data in DLI tables (table type: MANAGED) can only be exported to OBS buckets, and the export path must be a folder.</li><li id="dli_01_0010__li675153163611">Data can be exported across accounts. That is, after account B authorizes account A, account A can export data to the OBS path of account B if account A has the permission to read the metadata and permission information about the OBS bucket of account B and read and write the path.</li></ul>
|
|
</div>
|
|
<div class="section" id="dli_01_0010__section42958999144515"><h4 class="sectiontitle">Procedure</h4><ol id="dli_01_0010__ol16716195143659"><li id="dli_01_0010__li2078303115103"><span>You can export data on either the <span class="wintitle" id="dli_01_0010__wintitle189235461532"><b>Data Management</b></span> page or the <span class="wintitle" id="dli_01_0010__wintitle392464655315"><b>SQL Editor</b></span> page.</span><p><ul id="dli_01_0010__ul13952860151010"><li id="dli_01_0010__li20669721151337">To export data on the <span class="wintitle" id="dli_01_0010__wintitle4564762181553"><b>Data Management</b></span> page:<ol type="a" id="dli_01_0010__ol65658627151340"><li id="dli_01_0010__li16879536151342">In the navigation pane on the left of the console, choose <strong id="dli_01_0010__b145514411872">Data Management</strong> > <strong id="dli_01_0010__b14551541373">Databases and Tables</strong>.</li><li id="dli_01_0010__li29714355165922">Click the name of the database corresponding to the table where data is to be exported to switch to the <strong id="dli_01_0010__b681715115537">Manage Tables</strong> page.</li><li id="dli_01_0010__li14811172414512">Select the corresponding table (DLI table) and choose <strong id="dli_01_0010__b03118415457">More</strong> > <strong id="dli_01_0010__b731104154514">Export</strong> in the <strong id="dli_01_0010__b123220419453">Operation</strong> column. The <span class="wintitle" id="dli_01_0010__wintitle63234104516"><b>Export Data</b></span> page is displayed.</li></ol>
|
|
</li><li id="dli_01_0010__li10384371151118">To export data on the <span class="wintitle" id="dli_01_0010__wintitle134925579488"><b>SQL Editor</b></span> page:<ol type="a" id="dli_01_0010__ol39382464151459"><li id="dli_01_0010__li26745450151459">In the navigation pane on the left of the management console, choose <strong id="dli_01_0010__b16993184514153">SQL Editor</strong>.</li><li id="dli_01_0010__li1773513617043">In the navigation tree on the left, click <strong id="dli_01_0010__b20683530717">Databases</strong> to see all databases. Click the database name corresponding to the table to which data is to be exported. The tables are displayed.</li><li id="dli_01_0010__li2614201531">Click <span><img id="dli_01_0010__image10601210194513" src="en-us_image_0237994910.png"></span> on the right of the managed table (DLI table) whose data is to be exported, and choose <strong id="dli_01_0010__b1860815103455">Export</strong> from the shortcut menu.</li></ol>
|
|
</li></ul>
|
|
</p></li><li id="dli_01_0010__li10037634143659"><span>In the displayed <span class="wintitle" id="dli_01_0010__wintitle1477194264819"><b>Export Data</b></span> dialog box, specify parameters by referring to <a href="#dli_01_0010__table1903113115020">Table 1</a>.</span><p><div class="p" id="dli_01_0010__p25213331808">
|
|
<div class="tablenoborder"><a name="dli_01_0010__table1903113115020"></a><a name="table1903113115020"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_01_0010__table1903113115020" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter descriptions</caption><thead align="left"><tr id="dli_01_0010__row18963311404"><th align="left" class="cellrowborder" valign="top" width="13.8%" id="mcps1.3.3.2.2.2.1.1.2.3.1.1"><p id="dli_01_0010__p4896631504">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="86.2%" id="mcps1.3.3.2.2.2.1.1.2.3.1.2"><p id="dli_01_0010__p389619311604">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_01_0010__row390033110014"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p8896183120014">Databases</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p1789763113015">Database where the current table is located.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row1490043115016"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p1190073115015">Table Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p79001931203">Name of the current table.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row1290013117017"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p39003313012">Data Format</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p129002031005">Format of the file storing data to be exported. Formats other than JSON will be supported in later versions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row1390016314017"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p139003311011">Queue</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p2900931201">Select a queue.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row290212314015"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p119001331308">Compression Format</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p109005311408">Compression format of the data to be exported. The following compression formats are supported:</p>
|
|
<ul id="dli_01_0010__ul1490212318013"><li id="dli_01_0010__li890118311107"><strong id="dli_01_0010__b1383258800102814">none</strong></li><li id="dli_01_0010__li149019311702"><strong id="dli_01_0010__b447714703102819">bzip2</strong></li><li id="dli_01_0010__li7901133117017"><strong id="dli_01_0010__b1387948303102828">deflate</strong></li><li id="dli_01_0010__li29018313018"><strong id="dli_01_0010__b1774599284102831">gzip</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row10902131809"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p10902113112020">Storage Path</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><ul id="dli_01_0010__ul9902331502"><li id="dli_01_0010__li3902103116018">Enter or select an OBS path.</li><li id="dli_01_0010__li1690212313018">The export path must be a folder that does not exist in the OBS bucket. Specifically, you need to create a folder in the target OBS directory.</li><li id="dli_01_0010__li1590215311802">The folder name cannot contain the special characters of <strong id="dli_01_0010__b198865712220">\/:*?</strong> <strong id="dli_01_0010__b52895136212">"<>|</strong>, and cannot start or end with a dot (.).</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row109032318019"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p179020313017">Export Mode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p59028311707">Storage mode of the data to be exported.</p>
|
|
<ul id="dli_01_0010__ul1090373111018"><li id="dli_01_0010__li890220311402"><strong id="dli_01_0010__b1864119122549">New OBS directory</strong>: If the specified export directory exists, an error is reported and the export operation cannot be performed.</li><li id="dli_01_0010__li690318315014"><strong id="dli_01_0010__b1138281495413">Existing OBS directory (Overwritten)</strong>: If you create a file in the specified directory, the existing file will be overwritten.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_01_0010__row79031731005"><td class="cellrowborder" valign="top" width="13.8%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.1 "><p id="dli_01_0010__p19039310010">Table Header: No/Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="86.2%" headers="mcps1.3.3.2.2.2.1.1.2.3.1.2 "><p id="dli_01_0010__p10903531805">Whether the data to be exported contains the table header.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</p></li><li id="dli_01_0010__li48215562113558"><span>Click <span class="uicontrol" id="dli_01_0010__uicontrol1346108317431"><b>OK</b></span>.</span></li><li id="dli_01_0010__li7840124181212"><span>(Optional) You can view the job status (indicated by <span class="parmname" id="dli_01_0010__parmname158399481215"><b>Status</b></span>), statements (indicated by <span class="parmname" id="dli_01_0010__parmname883964151211"><b>Statement</b></span>), and other information about exporting jobs on the <span class="wintitle" id="dli_01_0010__wintitle283934191210"><b>SQL Jobs</b></span> page.</span><p><ol type="a" id="dli_01_0010__ol484010416125"><li id="dli_01_0010__li9839540126">Select <span class="parmvalue" id="dli_01_0010__parmvalue1650172515298"><b>EXPORT</b></span> from the <span class="parmname" id="dli_01_0010__parmname13789193911292"><b>Job Type</b></span> drop-down list box and specify the time range for exporting data. The jobs meeting the requirements are displayed in the job list.</li><li id="dli_01_0010__li28407441211">Click <span><img id="dli_01_0010__image1166513199136" src="en-us_image_0206789824.png"></span> to view details about an exporting job.</li></ol>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_01_0625.html">Managing Table Resources on the DLI Console</a></div>
|
|
</div>
|
|
</div>
|
|
|