Thanks Chao It works in the m/r code. Thanks.
Regards Yuting On Tue, Jul 6, 2010 at 1:12 PM, Chao Wang <[email protected]> wrote: > Make sure you call "BasicTableOutputFormat.close()" at the end of your > m/r job. It will create .meta for Zebra tables. > > Chao > > > -----Original Message----- > From: Yuting Lin [mailto:[email protected]] > Sent: Monday, July 05, 2010 9:03 PM > To: [email protected] > Subject: zebra TableInputFormat errors: Missing Meta File .meta > > Hi all > > I am trying to load the Zebra file generated from BasicTableOutputFormat > in > the MapReduce code. The code is similar with > org.apache.hadoop.zebra.mapred.TableMapReduceExample. But it throws > following exceptions while it splits the data in TableInputFormat: > > Exception in thread "main" java.io.IOException: BasicTable.Reader > constructor failed : Missing Meta File of t_table/CG0/.meta > at > org.apache.hadoop.zebra.io.BasicTable$Reader.<init>(BasicTable.java:328) > at > org.apache.hadoop.zebra.io.BasicTable$Reader.<init>(BasicTable.java:287) > at > org.apache.hadoop.zebra.mapred.TableInputFormat.getSplits(TableInputForm > at.java:883) > > The directory generated from BasicTableOutputFormat contains the > following > files (without .meta) > > /table/.btschema > /table/CG0 > /table/CG0/.schema > /table/CG0/part-0 > /table/CG1 > /table/CG1/.schema > /table/CG1/part-0 > /table/_temporary > /table/_temporary/CG0 > /table/_temporary/CG1 > > The same erroe occurs if I store and then load the data in Pig interface > (missing .meta file). > > How can I transfer the raw data into zebra format and then load them in > Pig > or MR program? Any suggestions would be appreciated! > > - > Regards > Yuting >
