zoukankan      html  css  js  c++  java
  • windows 安装hadoop 3.2.1

    问题:

    1、

    Java installed version: 1.8.0_231 Hadoop installed version: Hadoop 3.2.1

    But after running command hdfs namenode -format I'm getting following error

    Re-format filesystem in Storage Directory root= C:hadoop-3.2.1data
    amenode; location= null ? (Y or N) y
    2019-10-19 12:34:58,809 INFO namenode.FSImage: Allocated new BlockPoolId: BP-1445655329-172.18.148.177-1571468698797
    2019-10-19 12:34:58,809 INFO common.Storage: Will remove files: []
    2019-10-19 12:34:58,812 ERROR namenode.NameNode: Failed to start namenode.java.lang.UnsupportedOperationException
        at java.nio.file.Files.setPosixFilePermissions(Files.java:2044)
        at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:452)
        at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:591)
        at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:613)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:188)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1206)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1649)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1759)
    2019-10-19 12:34:58,819 INFO util.ExitUtil: Exiting with status 1: java.lang.UnsupportedOperationException
    2019-10-19 12:34:58,823 INFO namenode.NameNode: SHUTDOWN_MSG:
    /************************************************************
    SHUTDOWN_MSG: Shutting down NameNode at CWT-DST-0051/***.**.***.***

    解决办法:
    https://kontext.tech/column/hadoop/379/fix-for-hadoop-321-namenode-format-issue-on-windows-10
    Root cause
    Refer to the following official issue tracker about the details of the root cause:
    
    HDFS-14890
    
    This issue will only be fixed on Hadoop 3.3.0 or 3.2.0 releases.
    
    If you want to install 3.2.1, follow instructions below.
    
    Resolution
    I've provided detailed steps about installing Hadoop 3.2.1 on Windows 10  in the following article with fix about this issue:
    
    Latest Hadoop 3.2.1 Installation on Windows 10 Step by Step Guide
    
    Fix the issue only
    I've uploaded the updated JAR file into the following location. Please download it from the following link:
    
    https://github.com/FahaoTang/big-data/blob/master/hadoop-hdfs-3.2.1.jar  

    And then rename the file name hadoop-hdfs-3.2.1.jar to hadoop-hdfs-3.2.1.bk in folder %HADOOP_HOME%sharehadoophdfs.

    Copy the downloaded hadoop-hdfs-3.2.1.jar to folder %HADOOP_HOME%sharehadoophdfs.

    warning This is just a temporary fix before the official fix is published. There is no guarantee this temporary fix won't cause any new issue. 

    Refer to this article for more details about how to build a native Windows Hadoop: Compile and Build Hadoop 3.2.1 on Windows 10 Guide.

    If you have any other questions, feel free to add a comment. 

     
     
  • 相关阅读:
    java程序后台报错java.net.SocketException: Too many open files
    linux中,查看某个命令是来自哪个RPM包或者是通过哪个RPM包安装的
    Oracle卸载之linux快速卸载rac脚本-一键卸载
    40个DBA日常维护的SQL脚本
    Oracle SQL开发 之 Select语句完整的执行顺序
    Oracle开发 之 主-外键约束FK及约束的修改
    drop user 报错ora-00604
    oracle Bug 4287115(ora-12083)
    Ora-1157 ora-1110错误解决案例一枚
    rac库grid目录权限(6751)导致数据库宕机案例 此方法仅用于紧急救助
  • 原文地址:https://www.cnblogs.com/cbugs/p/13995132.html
Copyright © 2011-2022 走看看