Hello. I'm running hadoop 0.20.203 in psedo-distributed mode with
standard configuration from
Everything worked fine, but today I booted on my Ubuntu 10.10 and
suddenly got "Could only be replicated to 0 nodes instead of 1". I
found several workaround in the internet and just removed all hadoop
directories, re-formatted namenode and restarted hadoop.
So I could upload several files to hdfs but all my code did't work.
I always opened files on HDFS by this code:
FileSystem inputFS = FileSystem.get(URI.create(input), configuration);
Path inputPath = new Path(input);
and relative paths to some files on HDFS, i.e. "some/data" were
treated as HDFS paths (to "/user/sbos/some/data"), but now inputFS has
Could someone advice me how to force hadoop to treat my paths as HDFS
paths or just help me understand what happened?