
Inotebook amazon ec2 install#
You can install an Apache Zeppelin Notebook on your local machine and use it to debug and test ETL scripts on a development endpoint. However, at the time of writing, this feature appears to be broken.Creating a Notebook Server Hosted on Amazon EC2 > ipclient.ids > res = ipview.map_async(lambda x: x**30, range(8)) > print res.get() Variable named ipview which you can use to run parallel tasks on the remote cluster: $ starcluster shell -ipcluster =mycluster Variable named ipclient and a corresponding view of the entire cluster in a StarCluster will create a parallel client in a This will start StarCluster’s development shell and configure a remote parallel The expected behavior is described below (taken from ): ipcluster option: $ starcluster shell -ipcluster =mycluster You should also be able to use the IPython Parallel cluster with the > from IPython.parallel import Client > rc = Client('~/.starcluster/ipcluster/-.json' sshkey='~/.ssh/starcluster.rsa') In ~/.starcluster/ipcluster/, with the name -.json' $ ipython Generates and stores a JSON file containing the client's connection information When you run starcluster start mycluster, it You can now create a parallel client on your local machine that connects to and $ ipython # now you should be able to create a parallel client > from IPython.parallel import Client > rc = Client() > view = rc > results = view.map_async(lambda x: x**30, range(8)) > print results.get() $ starcluster sshmaster mycluster -u sgeadmin The list of know hosts, which is required for the subsequent commands to work. This is important as this will add the master node to You should first SSH into the master node as the CLUSTER_USER (by default Once the cluster has successfully started, Now we are finally ready to start the cluster: $ starcluster start mycluster For more information, see Defining Multiple Cluster Templates. Note that you can have multiple cluster templates, and are able to inherit
Inotebook amazon ec2 software#
0.95.6) Software Tools for Academics and Researchers (STAR) Please submit bug reports to > Listing all public StarCluster images.ģ2bit Images: - ami-d58719ef ap-southeast-2 starcluster-base-ubuntu-13.04-x86 (EBS) ami-1adf4f20 ap-southeast-2 starcluster-base-ubuntu-12.04-x86 (EBS) 64bit Images: - ami-cd841af7 ap-southeast-2 starcluster-base-ubuntu-13.04-x86_64-hvm (HVM-EBS) ami-e3841ad9 ap-southeast-2 starcluster-base-ubuntu-13.04-x86_64 (EBS) ami-18df4f22 ap-southeast-2 starcluster-base-ubuntu-12.04-x86_64 (EBS) total images: 5

Here we list allĪvailable AMIs for the ap-southeast-2 region: $ starcluster listpublic Listpublic subcommand to see the list of available AMIs. ID, as not all AMIs are available in all across all regions. # change this to the name of one of the keypair sections defined aboveĭepending on the AWS region you specified, you may need to modify the AMI Image The only change you are required to make is to specifying the keypair we just created You can find a description of every setting at Now you just need to define your cluster templates. Now we can simply run starcluster help and get the same output as before.įor further information, see Creating the configuration file Subcommand: $ export STARCLUSTER_CONFIG = "/starcluster.cfg"
Inotebook amazon ec2 full#
Provide the full path to the config file everytime we execute a starcluster We can set the STARCLUSTER_CONFIG environment variable so we don't have to 0.95.6) Software Tools for Academics and Researchers (STAR) Please submit bug reports to Usage: StarCluster Command Line Interface: starcluster action Available Commands: - NOTE: Pass -help to any command for a list of its options and detailed usage information - start: Start a new cluster - stop: Stop a running EBS-backed cluster - terminate: Terminate a running or stopped cluster Now that this file has been created, we can execute the previous command withoutĮrrors: $ starcluster -c /starcluster.cfg help StarCluster - () (v. This file in an alternate location, namely, /starcluster.cfg. We may want to version control this configuration, we initialize and store Initialized in the default location, which is ~/.starcluster/config. Note that without the -c argument, the configuration file would have been 0.95.6) Software Tools for Academics and Researchers (STAR) Please submit bug reports to !!! ERROR - config file /starcluster.cfg does not exist Options: - Show the StarCluster config template Write config template to /starcluster.cfg Quit Please enter your selection: 2 > Config template written to /starcluster.cfg Initialize the StarCluster configuration file: $ starcluster -c /starcluster.cfg help StarCluster - () (v. StarCluster with pip: $ mkvirtualenv starcluster -python = `which python2 ` $ python -VĬreate a directory to contain the various configuration files: $ mkdir

First we initialize a virtualenv for our project with Python 2.7 and install
