Skip to content

Environment

Kevin Lin edited this page Oct 6, 2017 · 1 revision

Development environment

  1. Install Virtualbox. Works with 5.1.
  2. Install Vagrant. Works with 1.9.8.
  3. Clone the repo: git clone https://github.com/comp413-2017/RDFS.git
  4. vagrant up - wait for the provision to finish
  5. vagrant ssh
  6. exit to exit the VM
  7. Remember to vagrant halt on your machine so you don't have the VM running in the background!
  8. You should be in the development environment. Things to know:
    • The username is vagrant and the password is vagrant.
    • The machine has 4GB of memory allocated. Change Vagrantfile if you need more.
    • The folder /home/vagrant/rdfs is synced from here (here being the location of this readme), meaning that all edits you make to files under the project are immediately reflected in the dev machine.
    • Hadoop binaries such as hdfs are on the PATH.
    • Google protobuf 3.0 is installed, you can run protoc to generate C++ headers from .proto specifications.
    • If you need external HTTP access, the machine is bound to the address 33.33.33.33.

Building

# Within the Vagrant VM
$ mkdir build
$ cd build
$ cmake ..
$ make

You will see a sample executable placed in build/rice-namenode/namenode. The compiled protocols are in build/proto.

Clone this wiki locally