You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by te...@apache.org on 2023/02/22 17:36:21 UTC

[druid] branch master updated: docs: add a link for the Druid SQL tutorial (#13468)

This is an automated email from the ASF dual-hosted git repository.

techdocsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 1595653e6f docs: add a link for the Druid SQL tutorial  (#13468)
1595653e6f is described below

commit 1595653e6f7ea7d4b6b3fac3a896f0b64745844b
Author: Katya Macedo <38...@users.noreply.github.com>
AuthorDate: Wed Feb 22 11:36:13 2023 -0600

    docs: add a link for the Druid SQL tutorial  (#13468)
    
    * docs: add juptyer API tutorial for API and jupyter tutorial index (#3)
    
    (cherry picked from commit aeb8d9e3390fa26d9c533dce0862295b80c58583)
    
    * update prereqs and fix jupyterlab name
    
    * Removing notebook since 13345 has it
    
    13345 should be merged first
    
    * update contributing instructions
    
    * docs: link to the  Druid SQL tutorial
    
    * Add link to partitioning
    
    * fix merge conflict
    
    * Saving
    
    * Update docs/tutorials/tutorial-jupyter-index.md
    
    * Remove partitioning
    
    ---------
    
    Co-authored-by: 317brian <53...@users.noreply.github.com>
    Co-authored-by: brian.le <br...@imply.io>
    Co-authored-by: Charles Smith <te...@gmail.com>
---
 docs/tutorials/tutorial-jupyter-index.md        | 27 +++++++++++++------------
 examples/quickstart/jupyter-notebooks/README.md |  6 ++++--
 2 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/docs/tutorials/tutorial-jupyter-index.md b/docs/tutorials/tutorial-jupyter-index.md
index 012bb7e16c..c5b872fb43 100644
--- a/docs/tutorials/tutorial-jupyter-index.md
+++ b/docs/tutorials/tutorial-jupyter-index.md
@@ -36,7 +36,7 @@ Make sure you meet the following requirements before starting the Jupyter-based
    
    ```bash
    pip3 install requests
-   ```
+   ````
 
 - JupyterLab (recommended) or Jupyter Notebook running on a non-default port. By default, Druid and Jupyter both try to use port `8888,` so start Jupyter on a different port.
 
@@ -48,17 +48,17 @@ Make sure you meet the following requirements before starting the Jupyter-based
      # Install Jupyter Notebook
      pip3 install notebook
      ```
-  - Start Jupyter
-      - JupyterLab 
-         ```bash
-         # Start JupyterLab on port 3001
-         jupyter lab --port 3001
-         ```
-      - Jupyter Notebook
-         ```bash
-         # Start Jupyter Notebook on port 3001
-         jupyter notebook --port 3001
-         ```
+  - Start JupyterLab
+  
+    ```bash
+     # Start JupyterLab on port 3001
+     jupyter lab --port 3001
+     ```
+   - Alternatively, start Jupyter Notebook
+     ```bash
+     # Start Jupyter Notebook on port 3001
+     jupyter notebook --port 3001
+     ```
 
 - An available Druid instance. You can use the [Quickstart (local)](./index.md) instance. The tutorials assume that you are using the quickstart, so no authentication or authorization is expected unless explicitly mentioned.
 
@@ -68,4 +68,5 @@ The notebooks are located in the [apache/druid repo](https://github.com/apache/d
 
 The links that follow are the raw GitHub URLs, so you can use them to download the notebook directly, such as with `wget`, or manually through your web browser. Note that if you save the file from your web browser, make sure to remove the `.txt` extension.
 
-- [Introduction to the Druid API](https://raw.githubusercontent.com/apache/druid/master/examples/quickstart/jupyter-notebooks/api-tutorial.ipynb) walks you through some of the basics related to the Druid API and several endpoints.
\ No newline at end of file
+- [Introduction to the Druid API](https://raw.githubusercontent.com/apache/druid/master/examples/quickstart/jupyter-notebooks/api-tutorial.ipynb) walks you through some of the basics related to the Druid API and several endpoints.
+- [Introduction to Druid SQL](https://raw.githubusercontent.com/apache/druid/master/examples/quickstart/jupyter-notebooks/sql-tutorial.ipynb) covers the basics of Druid SQL.
\ No newline at end of file
diff --git a/examples/quickstart/jupyter-notebooks/README.md b/examples/quickstart/jupyter-notebooks/README.md
index 7e5fa2beca..90c15f89ef 100644
--- a/examples/quickstart/jupyter-notebooks/README.md
+++ b/examples/quickstart/jupyter-notebooks/README.md
@@ -45,6 +45,7 @@ Make sure you meet the following requirements before starting the Jupyter-based
     # Install Jupyter Notebook
     pip3 install notebook
      ```
+     
   -  Start Jupyter:
       -  JupyterLab 
          ```bash
@@ -65,7 +66,8 @@ The notebooks are located in the [apache/druid repo](https://github.com/apache/d
 
 The links that follow are the raw GitHub URLs, so you can use them to download the notebook directly, such as with `wget`, or manually through your web browser. Note that if you save the file from your web browser, make sure to remove the `.txt` extension.
 
-- [Introduction to the Druid API](api-tutorial.ipynb) walks you through some of the basics related to the Druid API and several endpoints.
+- [Introduction to the Druid API](https://raw.githubusercontent.com/apache/druid/master/examples/quickstart/jupyter-notebooks/api-tutorial.ipynb) walks you through some of the basics related to the Druid API and several endpoints.
+- [Introduction to Druid SQL](https://raw.githubusercontent.com/apache/druid/master/examples/quickstart/jupyter-notebooks/sql-tutorial.ipynb) covers the basics of Druid SQL.
 
 ## Contributing
 
@@ -86,4 +88,4 @@ For the first PR, do the following:
 For the second PR, do the following:
 
 1. Update the list of [Tutorials](#tutorials) on this page and in the [ Jupyter tutorial index page](../../../docs/tutorials/tutorial-jupyter-index.md#tutorials) in the `docs/tutorials` directory. 
-2. Update `tutorial-jupyter-index.md` and provide the URL to the raw version of the file that becomes available after the first PR is merged.
+2. Update `tutorial-jupyter-index.md` and provide the URL to the raw version of the file that becomes available after the first PR is merged.
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org