The most programmatic way is to use external tables and then use HiveService (thrift) to add the partition after your MR job has ran successfully.
On Mon, Feb 27, 2012 at 12:17 PM, Hans Uhlig <[email protected]> wrote: > How can you add a partition to a table programmatically? I have a > mapreduce= job that needs to perform a "ALTER TABLE x ADD PARTITION IF NOT > EXIST (foo= =3D bar) LOCATION '<Mapreduce output>' after it completes. Is > there an exa= mple of this anwhere?
