GithubHelp home page GithubHelp logo

Comments (4)

 avatar commented on June 15, 2024 1

Hi, I fixed the problem by connecting to master machine using ssh and created a systemd service(followed @dennishuo 's stackoverflow comment).

  1. go to /usr/lib/systemd/system
  2. sudo su
  3. create a systemd unit file called "jupyter-notebook.service" with content
[Unit]
Description=Start Jupyter Notebook Server at reboot

[Service]
Type=simple
ExecStart=/opt/conda/bin/jupyter notebook --allow-root  --no-browser

[Install]
WantedBy=multi-user.target
  1. systemctl daemon-reload
  2. systemctl enable jupyter-notebook.service
  3. systemctl start jupyter-notebook.service

Next step will be to include above code into dataproc-initialization-actions.
Hope that helps.

from initialization-actions.

sammcveety avatar sammcveety commented on June 15, 2024

Any preference whether this .service file would inline the startup script or indirect to another file?

.service would be roughly:

[Unit]
Description=Start up Jupyter

[Service]
Type=oneshot
ExecStart=/usr/bin/launch_jupyter

[Install]
WantedBy=multi-user.target

from initialization-actions.

dennishuo avatar dennishuo commented on June 15, 2024

Inline should be fine, it'd match the cloud-sql proxy: https://github.com/GoogleCloudPlatform/dataproc-initialization-actions/blob/f22d7272d690bd48b9ea94bbf2f07ad464646236/cloud-sql-proxy/cloud-sql-proxy.sh#L115

Otherwise no strong preference either way.

from initialization-actions.

dennishuo avatar dennishuo commented on June 15, 2024

Fixed in #111 and #113

from initialization-actions.

Related Issues (20)

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.