Hi -

When I am trying to open crawldb/indexes that was built using Nutch,
the system is throwing an exception - java.io.FileNotFoundException -
access is denied at java.io.RandomAccessFile.open()..

The java code I am using is similar to what Nutch uses in IndexSearcher class -


                Directory dir = getDirectory(new Path(indexdb));
                if (IndexReader.isLocked(dir)) {
                        IndexReader.unlock(dir);
                }
                indexReader = IndexReader.open(dir);


          private Directory getDirectory(Path file) throws Exception {
            if ("local".equals(this.fs.getName())) {
                return FSDirectory.getDirectory(file.toString(), false);
              } else {
                return new FsDirectory(this.fs, file, false, conf);
              }         
          }

any thoughts?


Thanks,
Jha

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to