hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From web service <wbs...@gmail.com>
Subject Accessing hdfs from a program not run with bin/hadoop
Date Sun, 14 Nov 2010 02:54:02 GMT
I am running a program with the following code.

[code]
............
            conf.addResource(new
Path("file:///home/mac/software/hadoop/hadoop-0.20.2/conf/core-site.xml"));
            fs = FileSystem.get(conf);
            fs.delete(new
Path("hdfs://localhost:9000/user/mac/output/output-1"), true);
............
[/code]

but I get the following exception, not sure what else configuration I would
want to add.


[code]
Exception --
.......
Wrong FS: hdfs://localhost:9000/user/mac/output/output-1, expected: file:///
.......

[/code]

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message