Giter Club home page Giter Club logo

learn-spark's Introduction

Running notebooks

➜  learn-spark git:(master) ✗ git clone https://github.com/yaravind/learn-spark.git

➜  learn-spark git:(master) ✗ cd learn-spark

➜  learn-spark git:(master) ✗ pwd
/Users/aravind/Documents/WS/learn-spark

➜  learn-spark git:(master) ✗ ltr
total 32
-rw-r--r--   1 o60774  NA\Domain Users   1.0K Apr  4 13:49 LICENSE
drwxr-xr-x   7 o60774  NA\Domain Users   224B Apr  4 13:49 stackoverflow/
drwxr-xr-x   7 o60774  NA\Domain Users   224B Apr  4 13:49 timeusage/
drwxr-xr-x   7 o60774  NA\Domain Users   224B Apr  4 13:49 wikipedia/
drwxr-xr-x   4 o60774  NA\Domain Users   128B May 30 10:20 data/
drwxr-xr-x  14 o60774  NA\Domain Users   448B May 30 14:23 docs/
-rw-r--r--@  1 o60774  NA\Domain Users    65B May 30 14:24 README.md
drwxr-xr-x  15 o60774  NA\Domain Users   480B May 30 14:27 stackoverflow-complete/
-rw-r--r--   1 o60774  NA\Domain Users   208B May 30 14:36 run.sh
-rw-r--r--   1 o60774  NA\Domain Users   174B May 30 14:37 run.bat
drwxr-xr-x   5 o60774  NA\Domain Users   160B May 30 14:41 notebooks/

➜  learn-spark git:(master) ✗ ./run.sh
zsh: permission denied: ./run.sh

➜  learn-spark git:(master) ✗ chmod 755 run.sh

➜  learn-spark git:(master) ✗ ./run.sh
Executing the command: jupyter notebook
[I 18:47:07.060 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret
[I 18:47:07.462 NotebookApp] Loading IPython parallel extension
[I 18:47:08.246 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab
[I 18:47:08.246 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 18:47:08.250 NotebookApp] Serving notebooks from local directory: /home/jovyan
[I 18:47:08.250 NotebookApp] The Jupyter Notebook is running at:
[I 18:47:08.250 NotebookApp] http://d15e303fe663:8888/?token=4d02b0bb3e475c544bc4005b7edeb37409af45b76635d236
[I 18:47:08.250 NotebookApp]  or http://127.0.0.1:8888/?token=4d02b0bb3e475c544bc4005b7edeb37409af45b76635d236
[I 18:47:08.250 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:47:08.255 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///home/jovyan/.local/share/jupyter/runtime/nbserver-6-open.html
    Or copy and paste one of these URLs:
        http://xsdfssddfw:8888/?token=4d02b0bb3e475c544bc4005b7edeb37409af45b76635d236
     or http://127.0.0.1:8888/?token=4d02b0bb3e475c544bc4005b7edeb37409af45b76635d236

Command+Click on the http://127... url

learn-spark's People

Contributors

yaravind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

learn-spark's Issues

NPE with `$` in spark sql tests

But doesn't work if I use $ method call to reference the columns as shown below

def toWords(linesDf: DataFrame) = {
    import spark.implicits._
    linesDf
        .select($"line"),
            explode(split($"line", WhitespaceRegex)).as("word"))
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.