【已解决】could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1

这篇具有很好参考价值的文章主要介绍了【已解决】could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

hadoop分布式集群搭建时出现的问题

原始报错

put: File /user/hadoop/input/yarn-site.xml._COPYING_ could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node(s) are excluded in this operation.

解决方法

将VMare中的网络连接方式改变即可。如图将默认的NAT模式切换为桥接模式,然后重启Slvae虚拟机,关闭Master集群,重启Master集群。
【已解决】could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1,hadoop,ubuntu,大数据

讲故事时间

我在网上搜到的大部分解决的都是类似报错,即

could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and no node(s) are excluded in this operation.

但请注意,这种报错显示的是0个datanode,而我的报错显示是有1个datanode,而这类问题大多删除一些文件后重新格式化Namenode即可,可惜并不适用我这种存在datanode的情况。

讲故事时间其二

我是再一次上Hadoop课程才又搞起了这个,但是与上次不同的是,这是我是在Ubuntu的环境下装了VMware,然后再在虚拟机上安装Ubuntu,即Slave节点。
最开始的其实用的是VirtualBox,但是那个总是无法主宿机ping通,网上和教材上都说改成桥接模式就没问题了(伏笔),奈何于我无用,无奈换了VMware,这次倒是没换桥接模式,直接用NAT模式就可以ping通,所以我开开心心继续了配置文件的修改,直到我查看了datanode状态,如图:
【已解决】could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1,hadoop,ubuntu,大数据
嗯??我明明只有一个worker是Slave,怎么主机Master成了datanode了,其实我是前晚发现的这个问题,但是一直没有解决,那天设置把分布式的配置全部删除,然后用重跑了一遍伪分布式,然后重新配置了分布式,结果还是不行。
然后我就想,这大抵是个网络问题,然后我又想起来NAT的原理,那是对外封闭虚拟机的IP啊,然后我就想着试试换桥接模式行不行,修改倒是很快,改两个hosts,重启,完美运行了。

结语

成也NAT,败也NAT。文章来源地址https://www.toymoban.com/news/detail-572966.html

到了这里,关于【已解决】could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • 【已解决】this version of the Java Runtime only recognizes class file versions up to 52.0

    【已解决】this version of the Java Runtime only recognizes class file versions up to 52.0

    在把springboot项目打包了jar之后,准备本地运行一下 然后报错: 编译版本和运行版本不一致,可能是编译版本高于运行版本导致的 修改pom.xml, 将此版本改为 java -version 版本 为 spring-boot-maven-plugin 增加 parent的版本号 如果没指定spring-boot-maven-plugin 的版本,就会拿取最新的版本打

    2023年04月16日
    浏览(52)
  • 【Java异常】完美解决this version of the Java Runtime only recognizes class file versions up to xx.0异常

    【Java异常】完美解决this version of the Java Runtime only recognizes class file versions up to xx.0异常

    哈喽各位,我是小白。时隔多日我又回来啦! 最近在部署项目后,发现线上业务数据都变成了默认值0,而且这个现象,仅仅出现在当次上线后生成的数据中 于是我去扫了一眼日志,发现如下报错 Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/core/resources/IResource has been comp

    2024年02月11日
    浏览(11)
  • 【node.js】关于node.js,如何解决npm should be run outside of the Node.js REPL, in your normal shell报错?

    【node.js】关于node.js,如何解决npm should be run outside of the Node.js REPL, in your normal shell报错?

    前言,安装node方式采用的是安装包解压的 报如下错误: npm should be run outside of the Node.js REPL, in your normal shell 在windows环境下安装完node,其目录结构下会有一个node.exe文件,运行该工具就相当于在cmd中执行node命令,即进入node开发模式。 产生这个错误的原因是你将npm命令运行在

    2024年02月03日
    浏览(10)
  • 手动修复 rabbitmq 报错 “Crash dump is being written to“

    rabbitmq 报错: 修复方法: (1) 找到 rabbitmq 使用的 pv,例如: rabbitmq-0 的 pod: (2) 找到 pv 使用的信息: 需要的信息: (3) 在 pod 节点上查看对应的物理设备 (4) 查看设备挂载目录 (5) 查找 wal 文件路径,查找的路径来自步骤 (4) (6) 删除 wal 文件 此步骤请慎重操作,建议将文件备份后再操作

    2024年02月04日
    浏览(10)
  • IDEA Kafka:Connection to node -2 could not be established. Broker may not be available

    IDEA Kafka:Connection to node -2 could not be established. Broker may not be available

    IDEA Kafka:Connection to node -2 could not be established. Broker may not be available. IDEA 报错内容: 分析: 无法建立节点连接,Broker 不可用,需要考虑是 IDEA 连接出了问题,还是 Linux Kafka 服务出了问题 Linux Kafka 服务: Kafka 服务是否正常启动 检查 hosts 文件映射 IDEA 端: 本地 host 映射是否一

    2024年02月15日
    浏览(14)
  • Unity 解决 “... can only be called from the main thread” 问题

    有些属性或方法只能在主线程中调用,如 .gameObject 、 Instantiate() 等。这是 Unity 设计时的一个缺陷(为了保证线程安全),多年来一直没有修正,或者说官方懒得弄。 以 Instantiate() 为例,在非主线程调用时,报错大概如下所示。其他属性或方法的报错也大体相同。 注:应注意

    2024年01月17日
    浏览(22)
  • 报错:Connection to node -1 (localhost/127.0.0.1:9092) could not be established.

    在使用java客户端连接kafka时,怎么都连接不上,防火墙端口也开放了,后面查资料得知需要将修改kafka安装目录下的config/server.properties文件: 但是这样在执行kafka生产者命令时又出现问题:Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. kafka启动

    2024年02月11日
    浏览(20)
  • Connection to node -1 (/127.0.0.1:9092) could not be established. Broker may not be available.

    #spring.kafka.listener.type=single spring.kafka.bootstrap-servers : 127.0.0.1:9092,127.0.0.1:9093,127.0.0.1:9094 spring.kafka.producer.retries = 1 spring.kafka.producer.acks = all spring.kafka.producer.batch-size = 16384 spring.kafka.producer.buffer-memory = 33554432 #spring.kafka.producer.client-id=hello-kafka spring.kafka.producer.key-serializer = org.apac

    2023年04月12日
    浏览(14)
  • this version of the Java Runtime only recognizes class file versions up to 52.0

    this version of the Java Runtime only recognizes class file versions up to 52.0

    博客上很多博主说这个是jdk版本的问题,我所有地方都设置的是jdk1.8,但还是报错 Caused by: java.lang.UnsupportedClassVersionError: org/springframework/cloud/bootstrap/RefreshBootstrapRegistryInitializer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only re

    2024年02月11日
    浏览(17)
  • Kafka【问题 03】Connection to node -1 (/IP:9092) could not be established. Broker may not be available.

    此问题仅出现在云服务器上,非云服务器未出现过一下报错: 非云服务器: 云服务器: 云服务器有两个IP,监听IP为云服务器IP,而advertised监听IP为云服务器的外网IP。

    2024年02月05日
    浏览(11)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包