Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The process from unable kill namenode hadoop3.0.3 solution to abandonment

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

[hadoop@zui hadoop] $hadoop namenode-format

WARNING: Use of this script to execute namenode is deprecated.

WARNING: Attempting to execute replacement "hdfs namenode" instead.

Namenode is running as process 18452. Stop it first.

(3.0.3 use: hdfs namenode-formate)

[hadoop@zui hadoop] $stop-dfs.sh

Stopping namenodes on [zui]

Zui: Warning: Permanently added 'zui' (ECDSA) to the list of known hosts.

Zui: ERROR: Unable to kill 18452

Stopping datanodes

Localhost: ERROR: Unable to kill 19132

Stopping secondary namenodes [zui]

Zui: ERROR: Unable to kill 19311

[hadoop@zui hadoop] $stop-all.sh

WARNING: Stopping all Apache Hadoop daemons as hadoop in 10 seconds.

WARNING: Use CTRL-C to abort.

Stopping namenodes on [zui]

Zui: ERROR: Unable to kill 18452

Stopping datanodes

Localhost: ERROR: Unable to kill 19132

Stopping secondary namenodes [zui]

Zui: ERROR: Unable to kill 19311

Stopping nodemanagers

Stopping resourcemanager

[hadoop@zui hadoop] $hdfs namenode-format

Namenode is running as process 18452. Stop it first.

[hadoop@zui hadoop] $kill-9 18452

Bash: kill: (18452)-No such process

[hadoop@zui hadoop] $sudo kill-9 18452

[sudo] password for hadoop:

Hadoop is not in the sudoers file. This incident will be reported.

(use the root kill process)

[hadoop@zui hadoop] $su root

Password:

[root@zui hadoop] # kill-9 18452

Bash: kill: (18452)-No such process

[root@zui hadoop] # sudo kill-9 18452

Kill: sending signal to 18452 failed: No such process

[root@zui hadoop] #

(whether the process can only be found under the same household in hadoop, but hadoop usage also shows that there is no such process, plus sudo prompts hadoop not in the sudoers file)

Add hadoop to sudoers:

Example: quote from: https://www.cnblogs.com/dingtian/p/7771046.html

Switch users to root

Vim / etc/sudoers

Find the root ALL= (ALL) ALL and add it below

Stack ALL= (ALL) NOPASSWD: ALL

Wq!

Force save and exit

(it was found that root did not have the permission to modify sudoers during the process.

Chmod 720 sudoers-"ok)

After hadoop has the permission to sudo, kill namenode the process again: it still shows that there is no such process

[hadoop@zui etc] $sudo kill-9 18452

Kill: sending signal to 18452 failed: No such process

(but when I go every day, when I execute hdfs namenode-format, it displays namenode is running 18452)

I fuck myself, rm 3.0.3, and then use 2.6.0

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report