sundergs4learning.files.wordpress.com€¦ · Web viewStep:1. Install vmware player or vmware...
Transcript of sundergs4learning.files.wordpress.com€¦ · Web viewStep:1. Install vmware player or vmware...
Step:1Install vmware player or vmware workstation .
Step 2:Open ubuntu.zip
Step 3:Open vmware player
click here
Open ubuntu-labs.vmx file
Open terminal (crtl+alt+t //shortcut for terminal)
satish@ubuntu: java –version //check java version
go to work folder
satish@ubuntu:~$ cd worksatish@ubuntu:~/work cd hadoop-1.0.4satish@ubuntu:~/work/hadoop-1.0.4 cd confsatish@ubuntu:~/work/hadoop-1.0.4/conf lssatish@ubuntu:~/work/hadoop-1.0.4/conf gedit hadoop-env.shchange java pathsatish@ubuntu:~/work/hadoop-1.0.4/conf gedit mapred-site.xmlsatish@ubuntu:~/work/hadoop-1.0.4/conf gedit hdfs-site.xmlsatish@ubuntu:~/work/hadoop-1.0.4/conf gedit core-site.xmlsatish@ubuntu:~/work/hadoop-1.0.4/conf gedit masterssatish@ubuntu:~/work/hadoop-1.0.4/conf gedit slavessatish@ubuntu:~/work/hadoop-1.0.4/conf cd ../binsatish@ubuntu:~/work/hadoop-1.0.4/bin lssatish@ubuntu:~/work/hadoop-1.0.4/bin ./hadoop namenode -format(for first time installation only)
satish@ubuntu:~/work/hadoop-1.0.4/bin jps1202 jpssatish@ubuntu:~/work/hadoop-1.0.4/bin ./start-all.sh(enter your password wen it will ask paasword)satish@ubuntu:~/work/hadoop-1.0.4/bin jps1230 jps1402 datanode1302 namnode 1869 secondary namenode1885 tasktracker1987 jobtracker(Check u r all processers r running r not)
satish@ubuntu:~/work/hadoop-1.0.4/bin lssatish@ubuntu:~/work/hadoop-1.0.4/bin gedit test.txtsatish@ubuntu:~/work/hadoop-1.0.4/bin cat test.txthello world welcome to hadoop
satish@ubuntu:~/work/hadoop-1.0.4/bin ./hadoop dfs -put test.txt test.txtsatish@ubuntu:~/work/hadoop-1.0.4/bin ./hadoop dfs -ls /satish@ubuntu:~/work/hadoop-1.0.4/bin