hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <>
Subject [jira] [Commented] (HIVE-9800) Create scripts to do metastore upgrade tests on Jenkins
Date Fri, 06 Mar 2015 00:00:48 GMT


Sergio Peña commented on HIVE-9800:

In a nutshell,

Jenkins will call the following script:
- dev-support/

This script will download the patch for the specific ISSUE_NUM, check if there is a change
on the metastore structure, then execute the tests if there is one.

The above script will execute the following script on the AWS instance created for that:
- testutils/metastore/

This script creates an LXC environment where different database servers are configured. Then
it will call the metastore upgrade scripts for each of the db environments. (see testutils/metastore/dbs)

The above script will call the following script for upgrade testing:
- testutils/metastore/

This script walks through all the metastore/scripts/upgrade files, and execute them on the
server desired.

If you need to add a new DB support, just create a directory on {{testutils/metastore/dbs}}
with the same name that is on {{metastore/scripts/upgrade}}.
Then create a {{}} script that will be executed to install and start the database
in an LXC container.
Then create a {{}} script that accepts as parameter a .sql file. This script should
execute the .sql in the database desired.

> Create scripts to do metastore upgrade tests on Jenkins
> -------------------------------------------------------
>                 Key: HIVE-9800
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Sergio Peña
>            Assignee: Sergio Peña
>         Attachments: HIVE-9800.2.patch
> In order to have a better quality code for Hive Metastore, we need to create some upgrade
scripts that can run on Jenkins nightly or everytime a patch is added to the ticket that makes
structural changes on the database.

This message was sent by Atlassian JIRA

View raw message