You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Ilya Vishnevsky <Il...@e-legion.com> on 2007/05/15 16:34:17 UTC

SequenceFile.Reader. Access denied

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?