---
title: 运行hdfs namenode -format时报错
description: "运行hdfs namenode -format时报错，报错信息为：“Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0062.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0062.html
indexId: 755f0cd6f5455a3fd83e98eed45d4ec1165e7f1cec730ee1e2686dc111176d3774
---
# 运行hdfs namenode -format时报错

#### 问题现象描述

运行hdfs namenode -format时报错，报错信息为：“Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)”。


#### 关键过程、根本原因分析

本机免密有问题。


#### 结论、解决方案及效果

使用ssh-keygen -t rsa命令重做免密。
