Obtenez par e-mail toute l'actualité Hortonworks

Une fois par mois, recevez les dernières idées, tendances, informations d’analyse et découvertes sur le Big Data.

Sign up for the Developers Newsletter

Une fois par mois, recevez les dernières idées, tendances, informations d’analyse et découvertes sur le Big Data.

cta

Démarrer

cloud

Prêt à débuter ?

Télécharger Sandbox

Que pouvons-nous faire pour vous ?

* Je comprends que je peux me désabonner à tout moment. J'ai également compris les informations supplémentaires fournies dans la Politique de confidentialité de Hortonworks.
fermerBouton Fermer
HDP > Administration Hadoop > Hortonworks Sandbox

Sandbox Deployment and Install Guide

Deploying Hortonworks Sandbox on Docker

cloud Prêt à débuter ?

TÉLÉCHARGER 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

Inscription

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!