I don't have much knowledge on Nosql and Linux system, so I am going to setup a testing environment on my laptop in holidays
1. download CentOS Linux setup iso file
http://www.centos.org/
2. download java jdk 1.6
http://www.oracle.com/technetwork/java/javase/downloads/index.html
3. download hadoop setup file
http://hadoop.apache.org/#Download+Hadoop
I downloaded release 1.0.4
4. Create VM with VMware workstation
I created 3 vm
linux1 : 192.168.27.29 ----->master
linux2 : 192.168.27.31 ----->slaver
linux3 : 192.168.27.32 ----->slaver
5. install Linux OS
6. Configure vm ip address
vi /etc/sysconfig/network-scripts/ifcfg-eth0
7. Configure host name and hosts file
vi /etc/sysconfig/network --------->set the hostname
vi /etc/hosts --------->add ip hostname mapping for all 3 servers, for instance
192.168.27.29 linux1
192.168.27.31 linux2
192.168.27.32 linux3
8. Install JDK
Copy the jdk install file to vm with vmware share folders, and unzip it to local folder. I installed the jdk in /usr/jdk1.6.0-37
9. Install Hadoop
Copy the install file to vm with vmware share folders, and unzip it to local folder. I installed the hadoop files in /usr/hadoop-1.0.4
10. create folder to Hadoop
temp folder: /usr/hadoop-1.0.4/temp
Data folder: /usr/hadoopfiles/Data
Name folder:/usr/hadoopfiles/Name
make sure the folder owner is the user which will start hadoop thread. and for Data folder and Name folder, the permission should be 755
chmod 755 /usr/hadoopfiles/Data
11. Set environment variable
vi /etc/profile
then add the line below:
HADOOP_HOME=/usr/hadoop-1.0.4
JAVA_HOME=/usr/jdk1.6.0_37
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH
PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$PATH
export JAVA_HOME
export HADOOP_HOME
export CLASSPATH
export PATH
12. Setup SSH
1) generate ssh pub key file on all 3 servers
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
run "ssh localhost" to test if ssh works. make sure the authorized_keys file has correct permission, that's important
chmod 644 authorized_keys
2)Copy the file id_dsa.pub to other 2 servers with a new file name, for instance
on linux1, copy the id_dsa.pub to lunix2 and linux3 with name linux1_id_dsa.pub
3) log on other 2 servers, import the new file
cat ~/.ssh/linux1_id_dsa.pub >> ~/.ssh/authorized_keys
do the 3 steps on all 3 servers, make sure you can ssh log on any remote server without password prompt.
13. Configure Hadoop.
1) Open $HADOOP_HOME/conf/hadoop_env.sh, set the line below
export JAVA_HOME=/usr/jdk1.6.0_37
2) Open $HADOOP_HOME/conf/masters, add line below
linux1
3) Open $HADOOP_HOME/conf/slavers, add line below
linux2
linux3
4) Edit $HADOOP_HOME/conf/core-site.xml
<configuration>
<!--- global properties -->
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/hadoop-1.0.4/tmp</value>(这里可以自己配置一个存放tmp的文件夹路径)
<description>A base for other temporary directories.</description>
</property>
<!-- file system properties -->
<property>
<name>fs.default.name</name>
<value>hdfs://linux1:9000</value>
</property>
</configuration>
5) Edit $HADOOP_HOME/conf/hdfs-site.xml
<configuration>
<!--- global properties -->
<property>
<name>dfs.replication</name>
<value>2</value>
</property>
<property>
<name>dfs.name.dir</name>
<value>/usr/HadoopFiles/Name</value>
</property>
<property>
<name>dfs.data.dir</name>
<value>/usr/HadoopFiles/Data</value>
</property>
</configuration>
6) Edit $HADOOP_HOME/conf/mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>master:9001</value>
</property>
</configuration>
do the same configuration on all 3 servers
13) disable firewall on all 3 servers
service iptables stop
chkconfig iptables off
14) format name node
cd /usr/hadoop-1.0.4/bin
./hadoop namenode -format
15) start hadoop on master(linux1)
./start-all.sh
16) run "jps" on all 3 servers to check if hadoop is running
or you can open the website below
http://linux1:50030
http://linux1:50070
you can check the log file in logs folder in case any process can not be run.
it is a good start to learn hadoop, even Microsoft is developing data solutions with hadoop on window platform, so it is time to learn new things
reference:
http://blog.csdn.net/skyering/article/details/6457466
How did this go?
ReplyDeleteYour post really cool and interesting. Thanks very much.
ReplyDeleteDell - 15.6" Inspiron Laptop - 6GB Memory - 750GB Hard Drive
I like the helpful hadoop information you provide for your tutorials. I’ll bookmark your weblog and check again here frequently. I am quite sure I’ll learn many new stuff proper here! Best of luck for the following!
ReplyDeleteHadoop Training in hyderabad
Thanks so very much for taking your time to create this very useful and informative site. I have learned a lot from your site. Thanks!!
ReplyDeleteHadoop Course in Chennai
Your posts is really helpful for me.Thanks for your wonderful post. I am very happy to read your post. It is really very helpful for us and I have gathered some important information from this blog.
ReplyDeleteSalesforce Training
Hi I am Victoria lives in Chennai. I am a technology freak. Recently I did Java Course in Chennai at a leading Java Training Institutes in Chennai. This is really helpful for me to make a bright carrer in IT industry.
ReplyDeleteDot Net Training Chennai
ReplyDeleteThanks for your wonderful post.It is really very helpful for us and I have gathered some important information from this blog.If anyone wants to get Dot Net Training in Chennai reach FITA, rated as No.1 Dot Net Training Institute in Chennai.
Dot Net Course in Chennai
Dot Net Training
QTP Training Chennai
ReplyDeleteHi, I wish to be a regular contributor of your blog. I have read your blog. Your information is really useful for beginner. I did Testing Training in Chennai at Fita training and placement academy which offer best Software Testing Training in Chennai with years of experienced professionals. This is really useful for me to make a bright career.
Regards...
Software Testing Training Institutes in Chennai
Uniqe informative article and of course True words, thanks for sharing. Today I see myself proud to be a hadoop professional with strong dedication and will power by blasting the obstacles. Thanks to Hadoop Training Chennai
ReplyDeleteThanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
ReplyDeleteAWS Training in chennai | AWS Training chennai | AWS course in chennai
very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.
ReplyDeleteVMWare Training in chennai | VMWare Training chennai | VMWare course in chennai
Your posts is really helpful for me.Thanks for your wonderful post. I am very happy to read your post.
ReplyDeleteCloud Computing Training in chennai | Cloud Computing Training chennai | Cloud Computing Course in chennai | Cloud Computing Course chennai
Nice piece of article you have shared here, my dream of becoming a hadoop professional become true with the help of Hadoop Training in Chennai, keep up your good work of sharing quality articles.
ReplyDeleteYour blog is really awesome and I got some useful information from your blog. This is really useful for me. Thanks for sharing such a informative blog. Keep posting.
ReplyDeleteRegards..
Cloud Computing Course in Chennai
Truely a very good article on how to handle the future technology. This content creates a new hope and inspiration within me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this. Thanks :)
ReplyDeleteSoftware testing training in chennai | Software testing course chennai | Automation testing courses in chennai
Using big data analytics may give the companies many fruitful results, the findings can be implemented in their business decisions so as to minimize their risk and to cut the costs.
ReplyDeletehadoop training in chennai|big data training|big data training in chennai
Great information. Its very useful and also informative. Keep it up.
ReplyDeleteSelenium Training | Python Training | Pentaho Training | LoadRunner Training | WebSphere Training | Node.js Training
Thanks for appreciating. Really means and inspires a lot to hear from you guys.I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..Believe me, This is very helpful for me.
ReplyDeleteSalesforce Training in Chennai
Web Designing Training in Chennai
Thanks for appreciating. Really means and inspires a lot to hear from you guys.I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..Believe me, This is very helpful for me.
ReplyDeleteSalesforce Training in Chennai
Web Designing Training in Chennai
I accept there are numerous more pleasurable open doors ahead for people that took a gander at your site.
ReplyDeleteiosh course in chennai
Hi, thank you very much for new information, i learned something new. Very well written.It was so good to read and usefull to improve knowledge.Keep posting. If you are looking for any big data hadoop related information please visit our website.
ReplyDeletebig data hadoop training in bangalore.
I know you provided a great post ceh certification
ReplyDeleteThanks for sharing useful information. I learned something new from your bog. Its very interesting and informative. keep updating. If you are looking for any Data science related information, please visit our website bigdata training institute in bangalore.
ReplyDeleteGOOD
ReplyDeleteiot training in chennai
internship for mca students in chennai
internships for cse 3rd year students in hyderabad
information technology projects list 2018
ethical hacking course in chennai
ece internships in bangalore
internship for computer science students
internships in chennai for cse students
internship in chennai for cse 2019
internship for ece students in bangalore
nice................
ReplyDeleterobotics training
internship for mba students
cse internship in hyderabad
internship chennai
internships in chennai for cse
final year project for information technology
bba internship
internships for ece students in bangalore
list of architectural firms in chennai for internship
Updating with the current trend is strictly advisable and the content furnished here also states the same. Thanks for sharing this wonderful and worth able article in here. The way to expressed is simply awesome. Keep doing this job. Thanks :)
ReplyDeleteVisit SKARTEC
Click Here
SKARTEC Digital Marketing Academy
digital marketing course in chennai with placement
digital marketing training institute in chennai
digital marketing course near me
digital marketing course in chennai fees
best institute for digital marketing course in chennai
digital marketing course with placement
online digital marketing course in chennai
advance digital marketing course in chennai
digital marketing training institute near me
digital marketing course near me
digital marketing training in india
seo training
Everything is very open with a clear explanation of the issues. It was definitely informative. Your site is very helpful. Many thanks for sharing!
ReplyDeleteGadgets
ReplyDeleteWow. That is so elegant and logical and clearly explained. Brilliantly goes through what could be a complex process and makes it obvious.I want to refer about the best websphere admin training and websphere tutorial
Very well and informative post..
ReplyDeleteThanks for sharing with us,
We are again come on your website,
Thanks and good day,
Please visit our site,
buylogo
Excellent Blog! Great Work and informative
ReplyDeleteartificial intelligence course in mumbai
great post and creative ideas. I am happy to visit and read useful articles here. I hope you continue to do the sharing through the post to the reader. and good luck for the visitors site.
ReplyDeleteBig Data Hadoop Training In Chennai | Big Data Hadoop Training In anna nagar | Big Data Hadoop Training In omr | Big Data Hadoop Training In porur | Big Data Hadoop Training In tambaram | Big Data Hadoop Training In velachery
I just see the post i am so happy the post of information's.So I have really enjoyed and reading your blogs for these posts.Any way I’ll be subscribing to your feed and I hope you post again soon. thanks for ur efforts
ReplyDeleteAi & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai
Interesting stuff about cluster.Thank you for your updating.
ReplyDeleteJava training in Chennai
Java training in Bangalore
Java training in Hyderabad
Java Training in Coimbatore
Java Online Training
I have read your blog. Your information is really useful for beginner.Thanks a lot for your useful blogs.
ReplyDeleteSalesforce Training in Chennai | Certification | Online Course | Salesforce Training in Bangalore | Certification | Online Course | Salesforce Training in Hyderabad | Certification | Online Course | Salesforce Training in Pune | Certification | Online Course | Salesforce Online Training | Salesforce Training
I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.
ReplyDeleteartificial intelligence course in bangalore
It has fully emerged to crown Singapore's southern shores and undoubtedly placed her on the global map of residential landmarks. I still scored the more points than I ever have in a season for GS. I think you would be hard pressed to find somebody with the same consistency I have had over the years so I am happy with that.
ReplyDeleteartificial intelligence course in bangalore
I really love it and amazing information about the online marketing it's really good and great information well done.
ReplyDeletehadoop training in chennai
hadoop training in tambaram
salesforce training in chennai
salesforce training in tambaram
c and c plus plus course in chennai
c and c plus plus course in tambaram
machine learning training in chennai
machine learning training in tambaram
I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing..
ReplyDeletejava training in chennai
java training in annanagar
aws training in chennai
aws training in annanagar
python training in chennai
python training in annanagar
selenium training in chennai
selenium training in annanagar
I get a lot of great information from this blog. Thank you for your sharing this informative blog. Recently I did PHP course at a leading academy.
ReplyDeletedata science training in chennai
data science training in omr
android training in chennai
android training in omr
devops training in chennai
devops training in omr
artificial intelligence training in chennai
artificial intelligence training in omr
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking Best data science courses in hyerabad
ReplyDeleteI wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.
ReplyDeletemachine learning courses in bangalore
I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon…
ReplyDeletemachine learning courses in bangalore
I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.business analytics course
ReplyDeleteThankyou for the valuable content.It was really helpful in understanding the concept.# BOOST Your GOOGLE RANKING.It’s Your Time To Be On #1st Page
ReplyDeleteOur Motive is not just to create links but to get them indexed as will
Increase Domain Authority (DA).We’re on a mission to increase DA PA of your domain
High Quality Backlink Building Service
1000 Backlink at cheapest
50 High Quality for just 50 INR
2000 Backlink at cheapest
5000 Backlink at cheapest
Nice blog, thank for sharing with us.
ReplyDeleteData Science Training Institute in Hyderabad
Study chair stop information color step. Dream economic cup want.news today live
ReplyDeleteSuperb article. I was in search of this kind of blog.Thanks again.
ReplyDeleteSQL Classes in Pune