mirror of
https://github.com/linkedin/school-of-sre
synced 2026-01-16 21:48:03 +00:00
Deployed 52e7ed5 with MkDocs version: 1.1.2
This commit is contained in:
@@ -1291,11 +1291,10 @@ What is the output of running the pig queries in the right column against the da
|
||||
</ol>
|
||||
<p><img alt="Pig Example" src="../images/pig_example.png" /></p>
|
||||
<p>Output:
|
||||
<div class="highlight"><pre><span></span><code>7,Komal,Nayak,24,9848022334,trivendram
|
||||
<code>7,Komal,Nayak,24,9848022334,trivendram
|
||||
8,Bharathi,Nambiayar,24,9848022333,Chennai
|
||||
5,Trupthi,Mohanthy,23,9848022336,Bhuwaneshwar
|
||||
6,Archana,Mishra,23,9848022335,Chennai
|
||||
</code></pre></div></p>
|
||||
6,Archana,Mishra,23,9848022335,Chennai</code></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="https://spark.apache.org/"><strong>Spark</strong></a></p>
|
||||
@@ -1307,10 +1306,9 @@ What is the output of running the pig queries in the right column against the da
|
||||
<li>Presto is a high performance, distributed SQL query engine for Big Data.</li>
|
||||
<li>Its architecture allows users to query a variety of data sources such as Hadoop, AWS S3, Alluxio, MySQL, Cassandra, Kafka, and MongoDB.</li>
|
||||
<li>Example presto query:
|
||||
<div class="highlight"><pre><span></span><code><span class="n">use</span> <span class="n">studentDB</span><span class="p">;</span>
|
||||
<span class="k">show</span> <span class="n">tables</span><span class="p">;</span>
|
||||
<span class="k">SELECT</span> <span class="n">roll_no</span><span class="p">,</span> <span class="n">name</span> <span class="k">FROM</span> <span class="n">studentDB</span><span class="p">.</span><span class="n">studentDetails</span> <span class="k">where</span> <span class="n">section</span><span class="o">=</span><span class="err">’</span><span class="n">A</span><span class="err">’</span> <span class="k">limit</span> <span class="mi">5</span><span class="p">;</span>
|
||||
</code></pre></div>
|
||||
<code>use studentDB;
|
||||
show tables;
|
||||
SELECT roll_no, name FROM studentDB.studentDetails where section=’A’ limit 5;</code>
|
||||
</br></li>
|
||||
</ol>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user