Attempting to operate on hdfs namenode as root
时间: 2023-12-09 07:44:55 浏览: 75
回答: 当启动HDFS时出现"Attempting to operate on hdfs namenode as root"错误时,这意味着你正在以root用户身份尝试操作HDFS的namenode,但是没有定义HDFS_NAMENODE_USER。为了解决这个问题,你可以在start-dfs.sh和stop-dfs.sh两个文件的顶部添加以下参数:HDFS_NAMENODE_USER=root。这样就可以以root用户身份操作HDFS的namenode了。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [Attempting to operate on hdfs namenode as root](https://blog.csdn.net/lglglgl/article/details/80553828)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [hadoop-3.1.3启动HDFS时报错ERROR Attempting to operate on hdfs namenode as root的解决方法](https://blog.csdn.net/emgexgb_sef/article/details/124246231)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文