forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com> Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
37 lines
4.7 KiB
HTML
37 lines
4.7 KiB
HTML
<a name="dataartsstudio_02_0015"></a><a name="dataartsstudio_02_0015"></a>
|
|
|
|
<h1 class="topictitle1">Example of Using DataArts Factory APIs</h1>
|
|
<div id="body8662426"><div class="section" id="dataartsstudio_02_0015__section111703715274"><h4 class="sectiontitle">Scenarios</h4><p id="dataartsstudio_02_0015__p10260182818270"><span id="dataartsstudio_02_0015__text1945878152816">DataArts Studio</span> helps enterprises quickly build an end-to-end intelligent data system that covers the entire process from data ingestion to data analytics. The system can eliminate data silos, unify data standards, accelerate data monetization, and promote digital transformation.</p>
|
|
<p id="dataartsstudio_02_0015__p195354992720">The following describes how to create a script by calling the <a href="dataartsstudio_02_0097.html">Creating a Script</a> API. For details, see <a href="dataartsstudio_02_0008.html">Calling APIs</a>.</p>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_02_0015__en-us_topic_0181281302_section65073658155317"><h4 class="sectiontitle">Prerequisites</h4><p id="dataartsstudio_02_0015__p116478353910">You have planned the region where Data Development is located and determined the endpoint for calling an API based on the region.</p>
|
|
<p id="dataartsstudio_02_0015__p37264282618">An endpoint is the <strong id="dataartsstudio_02_0015__en-us_topic_0000001716158229_b16300195371816">request address</strong> for calling an API. Endpoints vary depending on services and regions. You can obtain endpoints of the service from <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_02_0015__en-us_topic_0181281302_section688409916227"><h4 class="sectiontitle">Creating a Shell Script</h4><div class="p" id="dataartsstudio_02_0015__en-us_topic_0181281302_p10011384112151">The following is an example of creating a shell script:<pre class="screen" id="dataartsstudio_02_0015__screen14130957454">{
|
|
"name":"echoTimeShell",
|
|
"type":"Shell",
|
|
"content":"echo a",
|
|
"connectionName":"con"
|
|
}</pre>
|
|
</div>
|
|
<ul id="dataartsstudio_02_0015__ul6728519471"><li id="dataartsstudio_02_0015__li572151474"><strong id="dataartsstudio_02_0015__b519920553586">name</strong> indicates a custom script name, for example, <strong id="dataartsstudio_02_0015__b82051355205811">echoTimeShell</strong>.</li><li id="dataartsstudio_02_0015__li972155104714"><strong id="dataartsstudio_02_0015__b185168145594">type</strong> indicates the type of the script.</li><li id="dataartsstudio_02_0015__li138583764716"><strong id="dataartsstudio_02_0015__b18521285593">content</strong> indicates the script content.</li><li id="dataartsstudio_02_0015__li16721355473"><strong id="dataartsstudio_02_0015__b1924916444591">connectionName</strong> indicates the name of the data connection associated with the script.</li></ul>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_02_0015__section191731914114716"><h4 class="sectiontitle">Creating a DLI SQL Script</h4><div class="p" id="dataartsstudio_02_0015__p15173101410479">You can also create a DLI SQL script. The following is an example:<pre class="screen" id="dataartsstudio_02_0015__screen71731614184715">{
|
|
"name":"dlisql1",
|
|
"type":"DLISQL",
|
|
"content":"show tables",
|
|
"connectionName":"dliCon1",
|
|
"database":"testDatabase1",
|
|
"queueName":"queue1"
|
|
}</pre>
|
|
</div>
|
|
<ul id="dataartsstudio_02_0015__ul18173161415478"><li id="dataartsstudio_02_0015__li1540303194815"><strong id="dataartsstudio_02_0015__b1399318583594">name</strong> indicates a custom script name, for example, <strong id="dataartsstudio_02_0015__b799885885914">dlisql1</strong>.</li><li id="dataartsstudio_02_0015__li144031031204816"><strong id="dataartsstudio_02_0015__b9132172511592">type</strong> indicates the type of the script.</li><li id="dataartsstudio_02_0015__li34031631204814"><strong id="dataartsstudio_02_0015__b15895133225912">content</strong> indicates the script content.</li><li id="dataartsstudio_02_0015__li84032311485"><strong id="dataartsstudio_02_0015__b159719918011">connectionName</strong> indicates the name of the data connection associated with the script.</li><li id="dataartsstudio_02_0015__li7403131104810"><strong id="dataartsstudio_02_0015__b4347191511018">database</strong> indicates the name of the associated database when the script is executed.</li><li id="dataartsstudio_02_0015__li8403123117483"><strong id="dataartsstudio_02_0015__b77315281506">queueName</strong> indicates the name of the queue running on DLI when the SQL statement is executed.</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_02_0012.html">Application Cases</a></div>
|
|
</div>
|
|
</div>
|
|
|