Hi all:
     In my map function, I need to connect to a table in HBase several
times ,and I use HTable class, the code as belows:

          HTable TestConnection = new HTable(new HBaseConfiguration(),
new Text("test"));

So every time the map function run , the code must run ,and this run
time is waste.


Because of too many times of connection,the most part of time of run
time is waste in  new HTable().    So I want to run the code one time,
and all of task use the same connection. How can I do this?

Reply via email to