posted 12 years ago
Hi Praveen,
I'm also very new to Hadoop but let me try answering you.
Hadoop should be used for unstructured data formats or semistructured formats for utilizing its features.
But I don't know why you are trying to get the data from database, instead you can try to read from file or any source.
Your assumption is correct in uderstanding your programe , it it calling 34 times.
As per the hadoop framework Map function will be for each data record.
But inside the Map you are trying to get the data from database always , infact map function should get the data from framework only.
Usually it will get from Text value parameter. by using value we usually perform our operation.
So I guess you might configured correctly, don't use connecting DB, getting results from resultset.
each records from the result set might get in value , try to use that value to your output.
I hope you understood.
Regards
Amruth