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: u...@thetaphi.de
> -----Original Message----- > From: sarfaraz masood [mailto:sarfarazmasood2...@yahoo.com] > Sent: Saturday, July 10, 2010 1:49 AM > To: general@lucene.apache.org > 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 > >