In order to use the Docker environment we provide, you will need two pre-requisite
Also, please make sure you have enough free memory (4GB) available.
For Windows Users: Install GIT bash for windows which include SSH for access to the VM.
The settings for the Vagrant VM are located in vagrantconfig.yaml. You can tweak them as necessary, such as adjusting the number_cpus or memory_size settings, to improve the performance of your VM.
With pre-requiste softwares properly installed, you could setup your Centos VM learning environment. Before you actually run commands, please make sure you have enough previlege. For example, virtual network adapter and network filesystem will be set up.
For Windows Users: You may need to configure line endings before running vagrant up so the VM is properly configured. You can do this as a gobal configuration with "git config --global core.autocrlf false", or only for a given repo by setting "* text eol=lf" in .gitattributes of that repo. Be sure to follow the directions for refreshing a repo after changing line endings, as documented here.
Open a terminal and you need to
vagrant up
to provision and run the VM.(Note that the first run of vagrant up
may take a long time. Please be patient.)
cd ~/bigdata-bootcamp/vm
Inside this folder is the necessary files for vagrant to provision and run the VMvagrant up
, this might take a bit, so grab a cup of coffeevagrant status
, you should see bigtop1 running(virtualbox)vagrant ssh
vagrant halt
to stop the vm from runningvagrant destroy
to destroy the current containerVagrant Cheatsheet (https://gist.github.com/wpscholar/a49594e2e2b918f4d0c4)
If you see the above error, it means the sample code you cloned was not checked out as is, so delete the local clone and type: git config --global core.autocrlf false
. Then clone the project again by: git clone https://bitbucket.org/realsunlab/bigdata-bootcamp.git
.
Now when you do vagrant up, the vm should configured correctly.
Another way to set autocrlf, but just for this project, is to run instead:
Besides of download the images from official sites, you can also install required packages using brew cask
It will take some time to run, please be patient. You can leave your terminal running, listen to some music and relax.
You will see
which means you sucessfully connect.
Now, you have the bigdata-bootcamp folder in your virtualbox system. You are all set to run the lab sessions. If you want to disconnect with the vagrant ssh, use Ctrl+D to exit the vagrant connection
As reference, here is a link shows the progress of vagrant's starting up in macOS.
Hope this sharing help! If there is anything else you would like to add, please feel free to leave the message below to share, especially for window users because I am also a Mac guy. I am not sure if we are allowed to implement in different way, hope instructor or other TA could explain it.
Please refer to https://asciinema.org/a/138869 for a simple demo progress.
here is a script to make it easier to install zeppelin. This script will check your folder in virtual machine, if the directory /usr/local/zeppelin
is not exists, it will download zeppelin-0.7.2 from official repository.
Because of zeppelin requires much more resources, you are supposed to update the ${bigdata-bootcamp}/vm/vagrantconfig.yaml
, and increase the value of memory_size
.
Besides, you are also required to update Vagrantfile
, and append one line as follow:
Don't Panic! Please just simply update your git repository using git pull origin fall2017
in ${bigdata-bootcamp}
And then, you can reload vagrant using vagrant reload
in vm.
Enter the vm, you can type
This command will install zeppelin and related interpreters.
Here are the related commands
Once you started your service, please check your log file "/usr/local/zeppelin/logs/*.log", it may seems as follow:
After the service is ready, you can visit your browser using url "localhost:10080"
If you are facing any problem, please attach the related dump and log files, which could be found in /usr/local/zeppelin/logs
.
You could connect to master node by run vagrant ssh
in vm
folder. You will find all materials in /bootcamp
folder.
After you finish, you may want to terminate the virtual cluster. You could achieve that by
vagrant destroy -f
to destroy the VM.Alternatively, you may just perform a graceful shutdown (without removing all traces of the virtual machine like above) by
vagrant halt
to gracefully shutdown the VM.