This Quick Start guide is for anyone who would like to install a Hadoop cluster on virtual machines, and is new to the use of virtual machines, Apache Ambari, and/or the Apache Hadoop component stack.
The following instructions cover four main steps for installing Ambari and HDP using VirtualBox and Vagrant:
...
To log on to a virtual machine, use the
vagrant ssh
command on your host machine, and specify the hostname; for example:Code Block LMBP:centos7.0 lkg$ vagrant ssh c7001 Last login: Tue Jan 12 11:20:28 2016 [vagrant@c7001 ~]$
From this point onward, this terminal window is connected to the virtual machine until you exit the virtual machine. All commands go to the VM, not to your Mac.
Recommendation: Open a second terminal window for your Mac. This is useful when accessing the Ambari Web UI. To distinguish between the two, terminal windows typically list the computer name or VM hostname on each command-line prompt and at the top of the terminal window.When you first access the VM you will be logged in as user
vagrant
. Switch to theroot
user; be sure to include the space between "su" and "-":Code Block [vagrant@c7001 ~]$ sudo su - Last login: Sun Sep 25 01:34:28 AEST 2016 on pts/0 root@c7001:~#
...