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.

cta

Démarrer

cloud

Prêt à débuter ?

Télécharger Sandbox

Que pouvons-nous faire pour vous ?

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

After you’ve downloaded the sandbox, open a console/terminal and issue the following command to load the sandbox image:

  • docker load -i <sandbox-docker-image-path>

Make sure the image was imported successfully – run the following command:

  • docker images

You should see sandbox-hdp on the list.

docker images

Start HDP Sandbox

Download one of the following scripts and save it somewhere on your computer.

Run the script you just downloaded. It will setup and start the sandbox for you, creating the sandbox docker container in the process if necessary.

Linux/Mac:

cd /path/to/start_sandbox-script
sh start_sandbox-hdp.sh

Windows Powershell:

cd /path/to/start_sandbox-script
powershell -ExecutionPolicy ByPass -File start_sandbox-hdp.ps1

You should see something like the following after script completion:

docker-start-sandbox-output

or

docker-start-sandbox-output-win

Stop HDP Sandbox

Linux/Mac/Windows:

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

docker stop {sandbox-container-hdp}

For HDF Sandbox

Install/Deploy/Start HDF Sandbox

Download one of the following scripts and save it somewhere on your computer.

Run the script you just downloaded one time. It will setup and start the sandbox for you, creating the sandbox docker container in the process if necessary.

Linux/Mac:

cd /path/to/start_sandbox-script
sh sandbox-hdf-deploy.sh

Windows Powershell:

cd /path/to/start_sandbox-script
powershell -ExecutionPolicy ByPass -File sandbox-hdf-deploy.ps1

You should see something like the following after script completion:

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: