hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anandha L Ranganathan <>
Subject Re: Generate Hive DDL
Date Fri, 15 Feb 2013 06:07:24 GMT
1) download the jar from
          from Apache JIRA

2) run the following command to generate DDLs.

 hive --service jar <<path_to_jar>>
com.media6.hive2rdbms.job.ShowCreateTable -D -D<<TABLE_NAME>>

On Thu, Feb 14, 2013 at 9:41 PM, Murtaza Doctor

>  Folks,
>  I was wondering if any one is aware of a way to generate Hive DDL
> scripts using the existing metastore which in our case is in postgres. We
> have a few tables which have been historically created and figuring our
> creating ways to get the schema as DDL so that we can keep it in under
> version control.  We could replicate the entire metastore would we just
> want 4 tables out of the 100 we already have in place.
>  Thanks,
> murtaza

View raw message