[jira] [Commented] (HIVE-2149) Fix ant target generate-schema

2014-09-10 Thread Lars Francke (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14128448#comment-14128448
 ] 

Lars Francke commented on HIVE-2149:


Okay, I'll reopen the issue but won't work on it.

The problem is that the DataNucleus Maven Plugin requires a database connection 
even to create the Schema. That means we need to provide a profile or some 
other way to get a driver on the classpath.

> Fix ant target generate-schema 
> ---
>
> Key: HIVE-2149
> URL: https://issues.apache.org/jira/browse/HIVE-2149
> Project: Hive
>  Issue Type: Bug
>Reporter: Ashutosh Chauhan
>Priority: Minor
>
> Running generate-schema target in metastore dir results in
> generate-schema:
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/SchemaTool



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-2149) Fix ant target generate-schema

2014-09-08 Thread Ashutosh Chauhan (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126307#comment-14126307
 ] 

Ashutosh Chauhan commented on HIVE-2149:


I am not suggesting to add db-specific profiles (although if some does that 
will be useful), but expose this target and than document steps to follow to 
make it work for one's desired db.

> Fix ant target generate-schema 
> ---
>
> Key: HIVE-2149
> URL: https://issues.apache.org/jira/browse/HIVE-2149
> Project: Hive
>  Issue Type: Bug
>Reporter: Ashutosh Chauhan
>Priority: Minor
>
> Running generate-schema target in metastore dir results in
> generate-schema:
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/SchemaTool



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-2149) Fix ant target generate-schema

2014-09-08 Thread Ashutosh Chauhan (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126301#comment-14126301
 ] 

Ashutosh Chauhan commented on HIVE-2149:


No, it will not create schema, but will generate sql file which you can than 
run to create schema. But, second half of your point is still valid I believe 
because target requires jdbc connector jar on path. I think useful thing here 
is to atleast document steps (in addition to any changes required in pom files) 
on how to do this, if one desires. I myself would have used it if it existed to 
generate schema for a released version of hive. Anyhow, Invalid is not correct 
resolution, may be just leave it open?

> Fix ant target generate-schema 
> ---
>
> Key: HIVE-2149
> URL: https://issues.apache.org/jira/browse/HIVE-2149
> Project: Hive
>  Issue Type: Bug
>Reporter: Ashutosh Chauhan
>Priority: Minor
>
> Running generate-schema target in metastore dir results in
> generate-schema:
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/SchemaTool



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-2149) Fix ant target generate-schema

2014-09-08 Thread Lars Francke (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14126286#comment-14126286
 ] 

Lars Francke commented on HIVE-2149:


Ah, maybe I have been too overeager. Do I understand this correctly that this 
goal would create the necessary schema (tables etc.) in an underlying database?

I've looked at the datanucleus Maven Plugin 
http://www.datanucleus.org/products/datanucleus/jdo/schema.html
That does have a schema-create goal which one can just run. The only problem I 
am facing there is that it expects the DB Driver on the classpath so we'd need 
a profile for every DBI think.

I'd be in favor of leaving this closed until someone needs it and is willing to 
work on it but I won't object if you want to open it again :)

> Fix ant target generate-schema 
> ---
>
> Key: HIVE-2149
> URL: https://issues.apache.org/jira/browse/HIVE-2149
> Project: Hive
>  Issue Type: Bug
>Reporter: Ashutosh Chauhan
>Priority: Minor
>
> Running generate-schema target in metastore dir results in
> generate-schema:
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/SchemaTool



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-2149) Fix ant target generate-schema

2014-09-08 Thread Ashutosh Chauhan (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14125676#comment-14125676
 ] 

Ashutosh Chauhan commented on HIVE-2149:


[~lars_francke] It will be good to have this functionality. Moving our build 
system has not provided this functionality nor made it obsolete. It will be 
good to have a maven target using which one can generate schema from jdo 
declaration. Shall we edit title of jira as "Provide generate-schema target" 
and reopen this?

> Fix ant target generate-schema 
> ---
>
> Key: HIVE-2149
> URL: https://issues.apache.org/jira/browse/HIVE-2149
> Project: Hive
>  Issue Type: Bug
>Reporter: Ashutosh Chauhan
>Priority: Minor
>
> Running generate-schema target in metastore dir results in
> generate-schema:
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/SchemaTool



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-2149) Fix ant target generate-schema

2011-05-04 Thread Ashutosh Chauhan (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028962#comment-13028962
 ] 

Ashutosh Chauhan commented on HIVE-2149:


Looks like in jpox to datanucleus transition in HIVE-445 this target was left 
behind.

> Fix ant target generate-schema 
> ---
>
> Key: HIVE-2149
> URL: https://issues.apache.org/jira/browse/HIVE-2149
> Project: Hive
>  Issue Type: Bug
>Reporter: Ashutosh Chauhan
>Priority: Minor
>
> Running generate-schema target in metastore dir results in
> generate-schema:
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/jpox/SchemaTool

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira