You'd better make the index in localfile,and copy the final index into the hdfs~~ It is not recommanded to using hdfs as the FileSystem for lucene(Though it can be used for search)
2010/12/31 Jander g <jande...@gmail.com> > Hi, all > > I want to run lucene on Hadoop, The problem as follows: > > IndexWriter writer = new IndexWriter(FSDirectory.open(new > File("index")),new StandardAnalyzer(), true, > IndexWriter.MaxFieldLength.LIMITED); > > when using Hadoop, whether the first param must be the dir of HDFS? And how > to use? > > Thanks in advance! > > -- > Regards, > Jander >