hdfs提示Target Replicas is 3 but found 2 replica(s) 问题解决
来源:互联网 发布:软件depthmap教程 编辑:程序博客网 时间:2024/06/06 20:21
修改文件副本数为2(dfs.replication to 2 ) 后,仍提示一下问题:
Under-Replicated Blocks: Target Replicas is 3 but found 2 replica(s).
原因:设置dfs.replication并不会在已有应用中生效,该属性只对新建文件时副本属未指定时取作用,如果想改变副本采用,以下语句
hadoop fs -setrep [-R] [-w] <rep> <path/file>
or
hdfs dfs -setrep [-R] [-w] <rep> <path/file>
上传文件时,指定副本语句:
Hadoop dfs -D dfs.replication=1 -put test.txt logs/
修改所有文件副本数为2
hadoop dfs -setrep -w 2 -R /
阅读全文
0 0
- hdfs提示Target Replicas is 3 but found 2 replica(s) 问题解决
- error: Installed (but unpackaged) file(s) found:
- delphi 7无法运行提示 Borland license information was found, but it is not valid for Delphi
- jdk9下遇到的Target is not a JDK root. System library was not found.问题解决方案
- MySQL is running but PID file is not found
- No qualifying bean of type is defined: expected single matching bean but found 2
- struts2 <s:submit>国际化时提示警告关于ognl.OgnlException: target is null for setProperty(null的解决方案
- "cabal: ar is required but it could not be found"
- gtags error: curses library is required but not found.
- rpmbuild err: "Installed (but unpackaged) file(s) found"
- rpmbuild 解决Installed (but unpackaged) file(s) found的方法
- rpmbuild报错Installed (but unpackaged) file(s) found ?
- Invalid character found in the request target 问题解决
- Android Eclipse 加载外部工程后错误提示 Unable to resolve target 'android-3'的问题解决
- pod安装AFNetworking3.0遇到dependency were found, but they required a higher minimum deployment target
- s:property must be empty, but is not。
- struts2: tag s:property must be empty, but is not
- expected single matching bean but found 2
- 日夜间模式的状态
- PHP开发:从基本环境,到正式环境,全过程迁移
- Java 八大排序算法
- atomic与nonatomic
- [Linux] zsh corrupt
- hdfs提示Target Replicas is 3 but found 2 replica(s) 问题解决
- 工作总结35 Oracle RAC的tnsnames.ora参数详解
- 动作Action详解
- javaweb学习总结23:jsp自定义标签开发入门
- make无法执行——源码编译、安装
- JVM调优总结(1):一栈、堆
- [Qt] file:///的作用
- 哈希表
- 图像的离散余弦变换