SequenceFile.Reader. Access denied

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SequenceFile.Reader. Access denied

Ilya Vishnevsky
Hi. I'm trying to read the crawl_generate sequence file from my Nutch:

SequenceFile.Reader reader = new SequenceFile.Reader (fs, genPath,
conf);

Here is the exception I get when I try to run my code:

java.io.FileNotFoundException:
C:\webdb\aco\segments\20070515133433\crawl_generate (Access is denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
org.apache.hadoop.fs.LocalFileSystem$LocalFSFileInputStream.<init>(Local
FileSystem.java:92)
        at
org.apache.hadoop.fs.LocalFileSystem.openRaw(LocalFileSystem.java:143)
        at
org.apache.hadoop.fs.FSDataInputStream$Checker.<init>(FSDataInputStream.
java:52)
        at
org.apache.hadoop.fs.FSDataInputStream.<init>(FSDataInputStream.java:271
)
        at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:254)
        at
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:973)
        at
org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:967)

The path C:\webdb\aco\segments\20070515133433\crawl_generate really
exists and contains two files: "part-00000" and "part-00000.crc"
This occurs when I try to read crawl_generate from any other segment
too.
What am I doing wrong?