Skip to content

Instantly share code, notes, and snippets.

@donbr
Last active September 3, 2018 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donbr/25246fc8c4ebcd3084dc28b325b758fb to your computer and use it in GitHub Desktop.
Save donbr/25246fc8c4ebcd3084dc28b325b758fb to your computer and use it in GitHub Desktop.
Hortonworks DataFlow Sandbox information

Hortonworks DataFlow Sandbox information

Reference

Navigation

Manage Docker Environment

  • Start HDF Sandbox
docker start sandbox-hdf
docker start sandbox-proxy
  • Stop HDF Sandbox
docker stop sandbox-hdf
docker stop sandbox-proxy

Reinitialize from Docker Deploy script

cd ~/HDF_3.1.1
sh docker-deploy-hdf311.sh

Connect to HDF Sandbox using SSH

ssh root@sandbox-hdf.hortonworks.com -p 2202

Send Data between Sandbox and Local Machine

Using the terminal of your choice, you can transfer files to/from sandbox and local machine.

Transfer file from local machine to sandbox:

scp -P 2202 <local_directory_file> root@sandbox-hdf.hortonworks.com:<sandbox_directory_file>

Transfer file from sandbox to local machine:

scp -P 2202 root@sandbox-hdf.hortonworks.com:<sandbox_directory_file> <local_directory_file>

create kafka topic

/usr/hdf/current/kafka-broker/bin/kafka-console-consumer.sh --bootstrap-server localhost:2181 --topic <topic-name>

view existing topics

/usr/hdf/current/kafka-broker/bin/kafka-topics.sh --list --zookeeper localhost:2181

view data in edi topic

/usr/hdf/current/kafka-broker/bin/kafka-console-consumer.sh --bootstrap-server sandbox-hdf.hortonworks.com:6667 --topic edi --new-consumer --from-beginning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment