In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to build the cluster environment of Hadoop". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build the cluster environment of Hadoop.
First, modify the core-site.xml file of Master. The contents of the file are as follows:
We changed the "localhost" domain name to "Master":
The same operation opens the Slave1 and Slave2 nodes core-site.xml, respectively, and changes the "localhost" domain name to "Master".
Secondly, modify the mapred-site.xml files of Master, Slave1 and Slave2.
Enter the mapred-site.xml file of the Master node to change the "localhost" domain name to "Master" and save and exit.
Similarly, open the Slave1 and Slave2 node mapred-site.xml, change the "localhost" domain name to "Master", and save and exit.
Finally, modify the hdfs-site.xml files of Master, Slave1 and Slave2:
We changed the "dfs.replication" value on the three machines from 1 to 3, so that we would have three copies of our data:
Save exit.
Step 4: modify the masters and slaves files of the hadoop configuration files on both machines
First modify the masters file of Master:
Access to the file:
Change "localhost" to "Master":
Save exit.
Modify the slaves file of Master
Enter the file:
The specific modifications are as follows:
Save exit.
From the above configuration, we can see that we use Master as both the master node and the data processing node, which is due to the consideration of 3 copies of our data and our limited number of machines.
Copy the masters and slaves files of the Master configuration to the conf folder under the Hadoop installation directory of Slave1 and Slave2, respectively:
Go to the Slave1 or Slave2 node to check the contents of the masters and slaves files:
It was found that the copy was completely correct.
At this point, the cluster environment of Hadoop is finally configured!
At this point, I believe you have a deeper understanding of "how to build the cluster environment of Hadoop". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.