![]() ![]() The machines defined have below hostnames:Ī1.vm.network :private_network, ip: "192.168.0.11"Ī1.vm.network "forwarded_port", guest: 8080, host: 8080Ī1.vm.network "forwarded_port", guest: 80, host: 80 The following configurations will define 4 Virtual machines to be used in the HDP cluster, Sudo sh -c 'echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled' Sudo sh -c 'echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag' Sudo sh -c 'echo "* hard nofile 10000" > /etc/security/nf' The below script should be included in the Vagrantfile to allow some basic provisioning for VMs likeģ.(Optional) Install wget $script = > /etc/security/nf' ![]() Lets configure Vagrant to use CentOS 6.6/ CentOS 6.7 as the base box $ config.vm.box = "bento/centos-6.7" or $ vi Vagrantfile Step 3 - Configuration of VMs in Vagrantfile This file will define VMs that are to be on the cluster. Download and install Oracle VirtualBox as the Vagrant Provider.Ĭreate a working directory for Vagrant file generation and initiating the deployment vis vagrant $ mkdir hdp22įollowing command will generate the Vagrantfile in current directory.Download and install from here Vagrant. ![]() As an easy alternative, vagrant with virtual box as a provider, HDP cluster can be set up on your own laptop. Sometimes engineers might also encounter situations of not having immediate access to cloud environment, in order to quickly spin up their own cluster and play arround. Often times, maintaining a hadoop cluster for longer periods on cloud is an expensive task. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |