Writing to HDFS from Java, getting “could only be replicated to 0 nodes instead of minReplication”

后端 未结 11 862
时光取名叫无心
时光取名叫无心 2021-02-01 18:59

I’ve downloaded and started up Cloudera\'s Hadoop Demo VM for CDH4 (running Hadoop 2.0.0). I’m trying to write a Java program that will run from my windows 7 machine (The same

11条回答
  •  清酒与你
    2021-02-01 19:10

    It appears to be some issue with the FS. Either the parameters in cross-site.xml are not matching the file it is trying to read

    OR

    there is some common mismatch in the path (I see there being a WINDOWS reference).

    you can use cygwin tool to setup the path and place it where the datanodes and temp file locations are placed and that should sufficiently do the trick Location : $/bin/cygpath.exe

    P.S. Replication does NOT seem to be the primary issue here according to me

提交回复
热议问题