Get fresh updates from Hortonworks by email

Once a month, receive latest insights, trends, analytics information and knowledge of Big Data.

Sign up for the Developers Newsletter

Once a month, receive latest insights, trends, analytics information and knowledge of Big Data.

cta

Get Started

cloud

Ready to Get Started?

Download sandbox

How can we help you?

* I understand I can unsubscribe at any time. I also acknowledge the additional information found in Hortonworks Privacy Policy.
closeClose button
HDP > Hadoop Administration > Hortonworks Sandbox

Sandbox Deployment and Install Guide

Deploying Hortonworks Sandbox on Docker

cloud Ready to Get Started?

DOWNLOAD SANDBOX

Introduction

This tutorial walks through the general approach for installing the Hortonworks Sandbox (HDP or HDF) onto Docker on your computer.

Prerequisites

Outline

Configure Docker Memory

For Linux

No special configuration needed for Linux.

For Windows

After installing Docker For Windows, open the application and click on the Docker icon in the menu bar. Select Settings.

Docker Settings

Select the Advanced tab and adjust the dedicated memory to at least 8GB of RAM.

Configure Docker RAM

For Mac

After installing Docker For Mac, open the application and click on the Docker icon in the menu bar. Select Preferences.

Docker Preferences

Select the Advanced tab and adjust the dedicated memory to at least 8GB of RAM.

Configure Docker RAM

Deploy Sandbox

For HDP Sandbox

Load Sandbox Into Docker

download-sandbox-hdp-docker

Naming convention for scripts are:

  • For Linux/Mac: start-sandbox-hdp-standalone_{version}.sh
  • For Windows: start-sandbox-hdp-standalone_{version}.ps1

Note: You will need to run script every time you want to restart the sandbox. It will setup and start the sandbox for you, creating the sandbox docker container in the process if necessary.

Linux/Mac:

cd /path/to/script
sh start-sandbox-hdp-standalone_{version}.sh

Windows Powershell:

cd /path/to/script
powershell -ExecutionPolicy ByPass -File start-sandbox-hdp-standalone_{version}.ps1

The script output will be similar to:

docker_start_sandbox-hdp

Stop HDP Sandbox

When you want to stop/shutdown your HDP sandbox, run the following command:

docker stop {sandbox-container-hdp}

Start HDP Sandbox

When you want to re-start your sandbox, re-run the script as you did above.

For HDF Sandbox

Install/Deploy/Start HDF Sandbox

download-sandbox-hdf-docker

Naming convention for scripts are:

  • For Linux/Mac: deploy-sandbox-hdf-standalone_{version}.sh
  • For Windows: deploy-sandbox-hdf-standalone_{version}.ps1

Note: You only need to run script once. It will setup and start the sandbox for you, creating the sandbox docker container in the process if necessary.

Linux/Mac:

cd /path/to/script
sh deploy-sandbox-hdf-standalone_{version}.sh

Windows Powershell:

cd /path/to/script
powershell -ExecutionPolicy ByPass -File deploy-sandbox-hdf-standalone_{version}.ps1

You should see something similar to the following:

docker_start_sandbox-hdf

Stop HDF Sandbox

When you want to shutdown your sandbox, run the following command:

docker stop {sandbox-container-hdf}

Start HDF Sandbox

When you want to re-start your sandbox, run the following command:

docker start {sandbox-container-hdf}

Check Sandbox Deployment

Make sure Sandbox docker container is running by issuing command:

  • docker ps -a

You should see something like:

docker-ps-output

Remove Sandbox

A container is an instance of the Sandbox image. So, if you have multiple containers and want to remove one, issue the following commands:

  • Stop container: docker stop {sandbox-container-name}
  • Remove container: docker rm {sandbox-container-name}

If you want to remove the Sandbox Docker image, issue the following command after stopping and removing the Docker container:

docker rmi {sandbox-image-name}

Further Reading

Appendix A: Troubleshooting

No space left on device:

User Reviews

User Rating
0 No Reviews
5 Star 0%
4 Star 0%
3 Star 0%
2 Star 0%
1 Star 0%
Tutorial Name
Sandbox Deployment and Install Guide

To ask a question, or find an answer, please visit the Hortonworks Community Connection.

No Reviews
Write Review

Register

Please register to write a review

Share Your Experience

Example: Best Tutorial Ever

You must write at least 50 characters for this field.

Success

Thank you for sharing your review!