If the data has the same structure, why not have it in one table? I dont think you can supply data from multiple tables into the mappers inside the same job. You'll have to write multiple jobs for it.
But like I mentioned earlier, you can read tables from inside the mapper if you want. I guess thats not what you are looking for in this case. Amandeep Khurana Computer Science Graduate Student University of California, Santa Cruz On Tue, Oct 6, 2009 at 11:33 AM, Huang Qian <[email protected]> wrote: > Thank you for the help. > > The data is distribute on different htables, all of which have the same > structure.So the maptask should read them split them and put them into the > map/reduce process. > what is the best way to made it ? > > Thank you all very much > > Huang Qian > 2009/10/6 Amandeep Khurana <[email protected]> > > > Do you need to scan across multiple tables in the same job? > > Tell a little more about what you are trying to do so we can help you out > > better. > > > > -ak > > > > On Tue, Oct 6, 2009 at 5:32 AM, Huang Qian <[email protected]> wrote: > > > > > thanks, but the map and reduce task is the same class, so I just want > to > > > control the data I give to them. > > > how can I make it without create a new inputformat implement > > > tableinputformat? > > > > > > 2009/10/5 Amandeep Khurana <[email protected]> > > > > > > > Afaik, you can scan across only a single table. However, you can read > > > > other tables using the api within the map or reduce task > > > > > > > > On 10/5/09, Huang Qian <[email protected]> wrote: > > > > > I just want to use several tables in hbase as datasource for > > map/reduce > > > > > program. so can tableinputformat class take more tables as inputs? > > > > > > > > > > -- > > > > > Huang Qian(黄骞) > > > > > Institute of Remote Sensing and GIS,Peking University > > > > > Phone: (86-10) 5276-3109 > > > > > Mobile: (86) 1590-126-8883 > > > > > Address:Rm.554,Building 1,ChangChunXinYuan,Peking > > > > > Univ.,Beijing(100871),CHINA > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > Amandeep Khurana > > > > Computer Science Graduate Student > > > > University of California, Santa Cruz > > > > > > > > > > > > > > > > -- > > > Huang Qian(黄骞) > > > Institute of Remote Sensing and GIS,Peking University > > > Phone: (86-10) 5276-3109 > > > Mobile: (86) 1590-126-8883 > > > Address:Rm.554,Building 1,ChangChunXinYuan,Peking > > > Univ.,Beijing(100871),CHINA > > > > > > > > > -- > Huang Qian(黄骞) > Institute of Remote Sensing and GIS,Peking University > Phone: (86-10) 5276-3109 > Mobile: (86) 1590-126-8883 > Address:Rm.554,Building 1,ChangChunXinYuan,Peking > Univ.,Beijing(100871),CHINA >
