datavane / datasophon

The next generation of cloud-native big data management expert , Aims to help users rapidly build stable, efficient, and scalable cloud-native platforms for big data.
https://datasophon.github.io/datasophon-website/
Apache License 2.0
1.14k stars 393 forks source link

[BUG] [Worker] Starting hdfs failed caused by can not mkdir permission denied #421

Closed gitfortian closed 11 months ago

gitfortian commented 1 year ago

Search before asking

What happened

when i installing hdfs service,then start failed. i found that hadoop dir permission is also root user,not hdfs or hadoop user,this caused start faild. no permission to mkdir pid dir. detail woker log as follow: 2023-09-19 17:16:50 TaskLogLogger-HDFS-NameNode: 1672023-09-1917:16:51TaskLogLogger-HDFS-NameNode:[5872073-9-1917:16:51TaskLogLogger-HDFS-NameNode:[176] INFO] INFO] 2023-09-19 17:16:51TaskLogLogger-HDFS-NameNode:[17672023-09-19 17:16:51 TaskLogLogger-HDFS-NameNode:[1767[ERROR] 2023-09-19 17:16:51 TaskLogLogger-HDFS-NameNode:[70] INFO INFO contigure success start to execute format namenode WARNING: /opt/datasophon/hadoop-3.3.3/pid does not exist.Creating.mkdir: cannot create directory /opt/datasophon/hadoop-3.3.3/pid’: Permission denied- ERROR: Unable to create /opt/datasophon/hadoop-3.3.3/pid. Aborting.- Namenode format failed

What you expected to happen

start hdfs successfully

How to reproduce

use root user install manager successfully,and then install hdfs service,then this issue produce

Anything else

No response

Version

v1.1.1

Are you willing to submit PR?

Code of Conduct

datasophon commented 1 year ago

it is already done at version 1.1.1