Your indices are at c:\index\segments? Permissions? Yours don't look right but its a while since I've played with lucene.
You could try opening them with http://www.getopt.org/luke/. It used to help me trying to figure lucene issues. St.Ack On Tue, May 12, 2009 at 2:34 AM, Puri, Aseem <[email protected]>wrote: > Hi > I know I these are Lucene index. But did not know much how to > use them. I copied the index on local directory and run a Lucene > searcher and provide the path where indexes are stored. When I run the > code it gives me exception: > > Exception in thread "main" java.io.FileNotFoundException: > C:\index\segments (The system cannot find the file specified) > at java.io.RandomAccessFile.open(Native Method) > at java.io.RandomAccessFile.<init>(Unknown Source) > at > org.apache.lucene.store.FSIndexInput$Descriptor.<init>(FSDirectory.java: > 425) > at > org.apache.lucene.store.FSIndexInput.<init>(FSDirectory.java:434) > at > org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:324) > at > org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:45) > at > org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:148) > at org.apache.lucene.store.Lock$With.run(Lock.java:109) > at > org.apache.lucene.index.IndexReader.open(IndexReader.java:143) > at > org.apache.lucene.index.IndexReader.open(IndexReader.java:138) > at > org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:47) > at com.honeywell.dejavu.Searcher.search(Searcher.java:40) > at com.honeywell.dejavu.Searcher.main(Searcher.java:34) > > But in index folder there are two files are present that I copied from > HDFS. > a. segments.gen > b. segments_uy > > Please tell me how I can use this Lucene indexes. > > Thanks & Regards > Aseem Puri > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of > stack > Sent: Tuesday, April 28, 2009 9:49 PM > To: [email protected] > Subject: Re: search on HBase > > They are lucene indices. Do you not know what to do with them? (You > need > to open a lucene Searcher -- or whatever its called these days -- and > pass > path to your index ... or open a MultiSearcher across all indices. Then > run > queries). > St.Ack > > On Tue, Apr 28, 2009 at 4:24 AM, Puri, Aseem > <[email protected]>wrote: > > > Thanks Stack and Lars > > > > My exception is solved. I able to run that program and I got > > some files in my output directory. But I don't know how I can use them > > for my search purpose. Can you please tell me how I should proceed now > > so I can make search HBase? > > > > Thanks & Regards > > Aseem Puri > > > > -----Original Message----- > > From: Lars George [mailto:[email protected]] > > Sent: Tuesday, April 28, 2009 3:57 PM > > To: [email protected] > > Subject: Re: search on HBase > > > > Hi Aseem, > > > > As Stack suggests, you have to make sure both Lucene libs are in the > > Hadoop classpath, i.e. added to the HADOOP_CLASSPATH in hadoop-env.sh. > > This includes lucene-core-x.y.z.jar as well as > > lucene-analyzers-x.y.z.jar. The latter seems to be missing from yours. > > > > Lars > > > > > > Puri, Aseem wrote: > > > Hi > > > During while running BuildTableIndex I got this exception. Can > > > anybody tell about how I can solve this exception? > > > > > > 09/04/26 16:24:23 WARN mapred.JobClient: Use GenericOptionsParser > for > > > parsing the arguments. Applications should implement Tool for the > > same. > > > 09/04/26 16:24:24 INFO mapred.TableInputFormatBase: split: > 0->master:, > > > 09/04/26 16:24:25 INFO mapred.JobClient: Running job: > > > job_200904261454_0018 > > > 09/04/26 16:24:26 INFO mapred.JobClient: map 0% reduce 0% > > > 09/04/26 16:24:41 INFO mapred.JobClient: map 100% reduce 0% > > > 09/04/26 16:25:03 INFO mapred.JobClient: Task Id : > > > attempt_200904261454_0018_r_000000_0, Status : FAILED > > > java.io.IOException: Error in creating an analyzer object > > > org.apache.lucene.analysis.standard.StandardAnalyzer > > > at > > > > > > org.apache.hadoop.hbase.mapred.IndexOutputFormat.getRecordWriter(IndexOu > > > tputFormat.java:75) > > > at > org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:404) > > > at org.apache.hadoop.mapred.Child.main(Child.java:158) > > > > > > > > > Thanks & Regards > > > Aseem Puri > > > > > > -----Original Message----- > > > From: Stack [mailto:[email protected]] > > > Sent: Wednesday, April 22, 2009 9:32 PM > > > To: [email protected] > > > Subject: Re: search on HBase > > > > > > See the build table index mr job in the hbase mapred package > > > > > > Stack > > > > > > > > > > > > On Apr 22, 2009, at 8:21, "Puri, Aseem" <[email protected]> > > > wrote: > > > > > > > > >> Hi > > >> > > >> I am a new HBase user. I have a table in which I am > > storing > > >> data. Can anybody tell me how should I search values in table with > > >> help > > >> of map reduce. If somebody have some code snippet then please share > > >> with > > >> me. > > >> > > >> > > >> > > >> Thanks & Regards > > >> > > >> Aseem Puri > > >> > > >> > > >> > > >> > > > > > > > > >
