Setting up jupyter notebook server as service in Ubuntu 16.04

Step 1: Verify the jupyter notebook location:

$ ll /home/avkash/.local/bin/jupyter-notebook
-rwxrwxr-x 1 avkash avkash 222 Jun 4 10:00 /home/avkash/.local/bin/jupyter-notebook*

Step 2: Configure your jupyter notebook with password and ip address as needed and make sure where it exist. We will use this file as configuration for jupyter as service.

jupyter config: /home/avkash/.jupyter/jupyter_notebook_config.py

Step 3: Create a file name jupyter.service as below and save it into /usr/lib/systemd/system/ folder.

$ cat /usr/lib/systemd/system/jupyter.service
[Unit]
Description=Jupyter Notebook

[Service]
Type=simple
PIDFile=/run/jupyter.pid
# Step 1 and Step 2 details are here..
# ------------------------------------
ExecStart=/home/avkash/.local/bin/jupyter-notebook --config=/home/avkash/.jupyter/jupyter_notebook_config.py
User=avkash
Group=avkash
WorkingDirectory=/home/avkash/tools/notebooks
Restart=always
RestartSec=10
#KillMode=mixed

[Install]
WantedBy=multi-user.target

Step 4: Now enabled the service as below:

$ sudo systemctl enable jupyter.service

Step 5: Now enabled the service as below:

$ sudo systemctl daemon-reload

Step 6: Now enabled the service as below:

$ sudo systemctl restart jupyter.service

The service is started now. You can test it as below:

$ systemctl -a | grep jupyter
 jupyter.service      loaded active running Jupyter Notebook

Thats it, enjoy!!

 

 

 

Advertisements

Hadoop 2.4.0 release (helpful links)

Kudos to Hadoop community as Hadoop 2.4.0 release is available for everyone to consume. A small list of improvements in HDFS, MapReduce along with overall framework are as below but not limited to:

Hadoop 2.4.0 Highlights:

  • HDFS:
    • Full HTTPS support
    • ACL Supported HDFS, allows easier access to Apache Sentry-managed data by components using it
    • Native supported Rolling upgrades in HDFS
    • HDFS FSImage using protocol-buffers for smoother operational upgrades
  • YARN:
    • ResourceManager HA Automatic Failover
    •  YARN Timeline Server PREVIEW for storing and serving generic application history

Hadoop 2.4.0 Release Notes:

http://hadoop.apache.org/docs/r2.4.0/hadoop-project-dist/hadoop-common/releasenotes.html

Hadoop 2.4.0 Source download:

http://apache.mirrors.tds.net/hadoop/common/hadoop-2.4.0/hadoop-2.4.0-src.tar.gz

Hadoop 2.4.0 Binary download:

http://apache.mirrors.tds.net/hadoop/common/hadoop-2.4.0/hadoop-2.4.0.tar.gz

Learnings to date about the “Unicorn Club”, a Billion-Dollar Startup

unicorn2a

Welcome To The Unicorn Club: Learning From Billion-Dollar Startups

  1. We found 39 companies belong to what we call the “Unicorn Club” (by our definition, U.S.-based software companies started since 2003 and valued at over $1 billion by public or private market investors). That’s about .07 percent of venture-backed consumer and enterprise software startups.

  1. On average, four unicorns were born per year in the past decade, with Facebook being the breakout “super-unicorn” (worth >$100 billion). In each recent decade, 1-3 super unicorns have been born.

  1. Consumer-oriented unicorns have been more plentiful and created more value in aggregate, even excluding Facebook.

  1. But enterprise-oriented unicorns have become worth more on average, and raised much less private capital, delivering a higher return on private investment.

  1. Companies fall somewhat evenly into four major business models: consumer e-commerce, consumer audience, software-as-a-service, and enterprise software.

  1. It has taken seven-plus years on average before a “liquidity event” for companies, not including the third of our list that is still private. It’s a long journey beyond vesting periods.

  1. Inexperienced, twentysomething founders were an outlier. Companies with well-educated, thirtysomething co-founders who have history together have built the most successes

  1. The “big pivot” after starting with a different initial product is an outlier.

  1. San Francisco (not the Valley) now reigns as the home of unicorns.

  1. There is very little diversity among founders in the Unicorn Club

Want to learn more…. visit the full article here