If a user has sufficient permissions they can simply opthe notebook editor within

If a user has sufficient permissions they can simply

This preview shows page 32 - 34 out of 395 pages.

security group rules, and proxy configurations. If a user has sufficient permissions, they can simply open the notebook editor within the Amazon EMR console. Only one user can have an EMR notebook open at a time from within Amazon EMR. If another user tries to open an EMR notebook that is already open, an error occurs. Important Amazon EMR creates a unique pre-signed URL for each notebook editor session, which is valid only for a short time. We recommend that you do not share the notebook editor URL. Doing this creates a security risk because recipients of the URL adopt your permissions to edit the notebook and run notebook code for the lifetime of the URL. If others need access to a notebook, provide permissions to their IAM user through permissions policies. For more information, see the section called “Security” (p. 30) . To open the notebook editor for an EMR notebook 1. Select a notebook with a Status of Ready or Pending from the Notebooks list. 2. Choose Open in JupyterLab or Open in Jupyter . A new browser tab opens to the JupyterLab or Jupyter Notebook editor. 3. From the Kernel menu, choose Change kernel and then select the kernel for your programming language. You are now ready to write and run code from within the notebook editor. 26
Image of page 32
Amazon EMR Management Guide Changing Clusters Saving the Contents of a Notebook When you work in the notebook editor, the contents of notebook cells and output are saved automatically to the notebook file periodically in Amazon S3. A notebook that has no changes since the last time a cell was edited shows (autosaved) next to the notebook name in the editor. If changes have not yet been saved, unsaved changes appears. You can save a notebook manually. From the File menu, choose Save and Checkpoint or press CTRL+S. This creates a file named NotebookName .ipynb in a checkpoints folder within the notebook folder in Amazon S3. For example, s3:// MyBucket / MyNotebookFolder / NotebookID / checkpoints/ NotebookName .ipynb . Only the most recent checkpoint file is saved in this location. Changing Clusters You can change the cluster that an EMR notebook is attached to without changing the contents of the notebook itself. You can change clusters for only those notebooks that have a Stopped status. To change the cluster of an EMR notebook 1. If the notebook that you want to change is running, select it from the Notebooks list and choose Stop . 2. When the notebook status is Stopped , select the notebook from the Notebooks list, and then choose View details . 3. Choose Change cluster . 4. If you have an active cluster running Hadoop, Spark, and Livy to which you want to attach the notebook, leave the default, and select a cluster from the list. Only clusters that meet the requirements are listed. —or— Choose Create a cluster and then choose the cluster options. For more information, see Creating a Cluster When You Create a Notebook (p. 24) .
Image of page 33
Image of page 34

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes