# hadoop启动报错:Storage directory /app/tmp/dfs/name does not exist

    今天在docker上安装hadoop启动报错

    org.apache.hadoop.hdfs.server.common.Storage: Storage directory /app/tmp/dfs/name does not exist
    

    后来发现是hdfs的namenode没有格式化导致,进入hadoop目录运行

    ./bin/hdfs namenode -format
    

    再启动