In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
The following error occurs when we open the system to enter the hadoop startup command start-all.sh:
[root@master ~] # start-all.shstarting namenode, logging to / usr/local/hadoop/libexec/../logs/hadoop-root-namenode-master.outmaster: ssh: connect to host master port 22: Network is unreachablemaster: ssh: connect to host master port 22: Network is unreachablestarting jobtracker, logging to / usr/local/hadoop/libexec/../logs/hadoop-root-jobtracker-master.outmaster: ssh: connect to host master port 22: Network is unreachable
Let's look at the progress:
[root@master ~] # jps2739 Jps [root@master ~] #
Shows that our hadoop is not started.
My solution:
Let's first check that the ip of our current virtual machine system is 192.168.40.128
[root@master ~] # ifconfigeth2 Link encap:Ethernet HWaddr 00:0C:29:4E:BC:7A inet addr:192.168.40.128 Bcast:192.168.40.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe4e:bc7a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:127 errors:0 dropped:0 overruns:0 frame:0 TX Packets:134 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12497 (12.2 KiB) TX bytes:14291 (13.9 KiB) Interrupt:19 Base address:0x2024 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: 1thumb 128 Scope:Host UP LOOPBACK RUNNING MTU : 16436 Metric:1 RX packets:24 errors:0 dropped:0 overruns:0 frame:0 TX packets:24 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1616 (1.5 KiB) TX bytes:1616 (1.5 KiB)
Then we edit and view the configuration in the / etc/hosts file:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.80.100 master#hadoop ip configuration ~ ~ ~ "/ etc/hosts" 3L 180C
We can see that the ip configuration of master,hadoop is 192.168.80.100, which is inconsistent with the ip of the current system. Keyboard press I to edit and modify ip to the current system ip (192.168.40.128), press esc to enter: wq to exit saving. Then restart start-all.sh
[root@master ~] # start-all.shstarting namenode, logging to / usr/local/hadoop/libexec/../logs/hadoop-root-namenode-master.outmaster: Warning: Permanently added the RSA host key for IP address' 192.168.40.128' to the list of known hosts.master: starting datanode, logging to / usr/local/hadoop/libexec/../logs/hadoop-root-datanode-master.outmaster: starting secondarynamenode, logging to / usr/local/hadoop/libexec/../logs/hadoop-root-secondarynamenode-master.outstarting jobtracker Logging to / usr/local/hadoop/libexec/../logs/hadoop-root-jobtracker-master.outmaster: starting tasktracker, logging to / usr/local/hadoop/libexec/../logs/hadoop-root-tasktracker-master.out
Start successfully, view the process
[root@master ~] # jps3065 SecondaryNameNode3400 Jps3146 JobTracker2951 DataNode2843 NameNode3260 TaskTracker
Success
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.