More than likely you would be best served by outputting a file from
Hadoop in your map/reduce job and importing that directly into the
database. Databases typically support a way to do bulk loading of data
from a file like sqlldr for Oracle. Using reduce to insert data may
cause many short connections to the database that could result in many
small transactions instead of a single large transaction using a file.

Regards,
Ryan

-----Original Message-----
From: Yih Sun Khoo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2008 2:28 PM
To: [email protected]
Subject: Optimizations

Optimizations



Right now I have a job whose reducer phase outputs the key-value pairs
as
records into a database.  Is this the best way to be loading the
database?  What
are some alternatives?

Reply via email to