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

What are the common mistakes in hadoop

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces what are the common mistakes in hadoop. It is very detailed and has a certain reference value. Friends who are interested must finish reading it.

Start hadoop under the root account (provided that the hadoop account is not a root account), and then switch to the hadoop account after termination, and Permission Denied will appear.

2013-08-06 09 ERROR org.apache.hadoop.hdfs.server.namenode.FSNamesystem: FSNamesystem initialization failed.

Java.io.FileNotFoundException: / opt/data/hadoop/hdfs/name/in_use.lock (Permission denied)

The cause of the exception:

Because root will change the file permissions, use chown-R hadoop:hadoop / opt/data/hadoop/hdfs/* to change the user permissions.

Since slave does not have root@master 's ssh without key to log in, it will not operate the slave machine. If there is any, you can do the corresponding operation on the slave machine.

# View permissions of current folder

[hadoop@master current] $ll-a / opt/data/hadoop/hdfs/name/

Solution:

# stop hadoop cluster

Stop-all.sh

# exit the hadoop account, return to the root account permission, and change the current folder permission to hadoop

[root@master Desktop] # chown hadoop:hadoop / opt/data/hadoop/hdfs/name/current/*

# View permissions of current folder

[root@master Desktop] # ll-a / opt/data/hadoop/hdfs/name/current/

Total dosage 24

Drwxr-xr-x. 2 hadoop hadoop 4096 April 18 10:45.

Drwxrwxr-x. 5 hadoop hadoop 4096 April 18 11:25..

-rw-r--r--. 1 hadoop hadoop 4 April 18 10:45 edits

-rw-r--r--. 1 hadoop hadoop 2226 April 18 10:45 fsimage

-rw-r--r--. 1 hadoop hadoop 8 April 18 10:45 fstime

-rw-r--r--. 1 hadoop hadoop 99 April 18 10:45 VERSION

The above is all the contents of the article "what are the common mistakes in hadoop?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Servers

Wechat

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

12
Report