Thanx a lot :-) It worked --- On Sat, 10/7/10, Uwe Schindler <[email protected]> wrote:
From: Uwe Schindler <[email protected]> Subject: RE: Problem with linux To: [email protected] Date: Saturday, 10 July, 2010, 5:31 AM Is the folder mounted on NFS? If yes, use SimpleFSLockFactory. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: sarfaraz masood [mailto:[email protected]] > Sent: Saturday, July 10, 2010 1:49 AM > To: [email protected] > Cc: solr > Subject: Problem with linux > > I have problems when i execute my prog on linux having this following piece > of code. > { > > Document d; > Analyzer analyzer = new PorterStemAnalyzer(); System.out.println("1"); > > > Directory index = FSDirectory.open(new File("index1")); > System.out.println("2"); > > IndexWriter w = new IndexWriter(index, analyzer, true, > IndexWriter.MaxFieldLength.UNLIMITED ) ; // MY PROG HANGS UP HERE > System.out.println("3"); . > . > . > } > > > Strangely this exact prog runs well on windows. It simply hangs up(doesnt > halt) while creating the IndexWriter object in linux. The account via which im > logged in has sufficient rights for the concerned folder. > > > -Sarfaraz > >
