Hadoop拷贝文件到hdfs时出错:could only be replicated to 0 nodes, instead of 1

原创 2016年07月24日 12:08:21

logs中的详细错误为:

bug:ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Exception in doCheckpoint


解决方案:

需要在所有节点的/opt/hadoop/etc/hadoop/hdfs-site.xml中添加:

<property>
    <name>hadoop.tmp.dir</name>
    <value>file:/opt/hadoop/tmp</value>
</property>

删除所有节点的tmp目录

rm -r /opt/hadoop/tmp


重启:

hdfs namenode -format

sbin/start-all.sh


相关文章推荐

hadoop "File /user/<user>/input/conf/slaves could only be replicated to 0 nodes, instead of 1"问题及解决办

本文地址:http://blog.csdn.net/kongxx/article/details/6892675 安装hadoop的官方文档安装后,在伪分布式模式下运行 bin/hadoo...
  • kongxx
  • kongxx
  • 2011年10月21日 08:20
  • 6063

Hadoop报错“could only be replicated to 0 nodes, instead of 1” .

Hadoop报错“could only be replicated to 0 nodes, instead of 1” root@scutshuxue-desktop:/home/root/hado...

hadoop异常“could only be replicated to 0 nodes, instead of 1” 解决

异常分析  1、“could only be replicated to 0 nodes, instead of 1”异常 (1)异常描述 上面配置都正确无误,并且,已经完成了如下运...

org.apache.hadoop.hdfs.DFSClient: Error Recovery for null bad datanode[0] nodes == null问题可能出现的原因

2014年-1-22日遇到了这个问题: 2014-01-22 14:36:18,346 WARN org.apache.hadoop.hdfs.DFSClient: Error Recovery fo...

Louboutin Louis Studded haut-Top noir We'll a range of to do with merchandise category could be the

We are generally a multi functional collection concerning related merchandise category will be the c...

hommes mizuno wave prophecy We'll a range of to do with merchandise category could be the by the nam

We can often be a a variety concerning related merchandise category is always that called going to b...

Christian Louboutin femme We'll a range of to do with merchandise category could be the by the name

We are frequently a multi functional collection about related merchandise category is the fact calle...

【TypeError: only length-1 arrays can be converted to Python scalars】

今天写python代码: 当用到math.log()函数值,总是出现如下错误: TypeError: only length-1 arrays can be converted to Python...

查询时出错 An expected Field was not found or could not be retrieved properly. [SHAPE.AREA] 解决方法

本来做的事情是将SDE中任意范围内的要素按查询条件导出到文件地理数据库,最初使用的是IFeatureDataConverter接口的ConvertFeatureClass方法,可是后来发现这个方法不支...
  • zxhm001
  • zxhm001
  • 2014年01月03日 10:27
  • 1125

RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due to mismatched status

使用RMAN备份,运行delete noprompt obsolete; 报以上错误   RMAN> show all; RMAN configuration parameters for da...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Hadoop拷贝文件到hdfs时出错:could only be replicated to 0 nodes, instead of 1
举报原因:
原因补充:

(最多只允许输入30个字)