hadoop入门 启动 journalnode报错

启动journalnode报错如下

[hadoop@salve001 ~]$ hdfs --daemon start journalnode
ERROR: Cannot set priority of journalnode process 74165
[hadoop@salve001 ~]$ 

查看报错日志提示

2021-02-03 10:42:05,421 ERROR org.apache.hadoop.hdfs.qjournal.server.JournalNode: Failed to start journalnode.
org.apache.hadoop.util.DiskChecker$DiskErrorException: Cannot create directory: /data1/hadoop/dfs/jn

根据提示目录无法创建,手动创建

[root@salve001 ~]# mkdir -p  /data1/hadoop/dfs/jn

切换hadoop用户启动journalnode