Koyawa don kafa yanayin Hadoop don koyo da gwaji a VirtualBox
Tare da wannan koyawa za ku iya saita yanayin Hadoop ɗin ku ta amfani da injunan kama-da-wane. Don fara saukewa kuma shigar VirtualBox .
Na gaba za ku buƙaci samun centos kama-da-wane hoto. Da zarar an zazzage ku ƙirƙiri kundin adireshi akan tushen tukin ku da ake kira VMs sannan ku buɗe abin da ke cikin fayil ɗin centos zip ɗin zuwa kundin adireshin VMs..
A cikin VirtualBox, kuna buƙatar ƙirƙirar sabon injin kama-da-wane. Choose Linux from type and then Red Hat 64-bit from version. Kuna buƙatar keɓance ƙwaƙwalwar ajiyar 2048Mb kuma don Hard Disk zaɓi amfani da fayil ɗin rumbun kwamfyuta da ke akwai kuma kewaya zuwa kundin hoto na centos a cikin kundin VMs.. Zaɓi fayil ɗin vmdk wanda sunan fayil ɗin ba ya ƙare da lamba. Once you have done that the machine is ready to start up.
Next is to install the VirtualBox Guest Additions which gives you better performance amongst other enhancement. Before you install Guest Additions, run the following install commands to prepare for the installation
# yum update
# yum install gcc
# yum install kernel-devel
# yum install bzip2
# shutdown -r 00
If you need to return the cursor to Windows press the host key which is the right Ctrl key by default. Choose devices from the VirtualBox menu and choose Insert Guest Additions CD Image. Follow the prompts to install. Restart the virtual machine for the changes to take effect.
Installing Apache BigTop
BigTop is ideal for learning Big Data components like Hadoop. Lets get started with the installation.
First get the repo file which points to the download of Hadoop and it’s dependencies.
wget -O /etc/yum.repos.d/bigtop.repo \
http://www.apache.org/dist/bigtop/bigtop-1.0.0/repos/centos6/bigtop.repo
Na gaba shine zaɓi kuma shigar da abubuwan Hadoop
yum install hadoop * mahout* oozie* hbase* hive* hue* alade* zookeeper*
Zaɓi ee don faɗakarwar sa hannun lambar. Da zarar Hadoop kuma an shigar da abubuwan da aka zaɓa mataki na gaba shine saita Hadoop. Bayan daidaitawar Hadoop zai kasance a shirye don farawa.
Zazzage kuma shigar da java
yum shigar java-1.7.0-openjdk-devel.x86_64
Tsara sunan node
sudo /etc/init.d/hadoop-hdfs-namenode init
Fara ayyukan Hadoop don tarin ku
don i in hadoop-hdfs-namenode hadoop-hdfs-datanode ; yi sabis ɗin sudo $ na fara ; yi
Ƙirƙiri tsarin ƙaramin kundin adireshi a cikin HDFS
sudo /usr/lib/hadoop/libexec/init-hdfs.sh
Fara YARN daemons
sudo sabis hadoop-yarn-resourcemanager fara; sudo sabis hadoop-yarn-nodemanager fara
Idan duk abin da muke da kyau yanzu kuna da shigarwar Hadoop mai aiki.
