You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Rajesh Koilpillai (JIRA)" <ji...@apache.org> on 2012/07/13 20:07:34 UTC
[jira] [Commented] (OOZIE-900) Don't throw an exception when db
schema already exists
[ https://issues.apache.org/jira/browse/OOZIE-900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413918#comment-13413918 ]
Rajesh Koilpillai commented on OOZIE-900:
-----------------------------------------
As an end user, the message should suuffice - exceptions could get logged as part of the logging mechanism (say in a file). Would be nice to avoid this in the console, anyway this is a trivial issue.
> Don't throw an exception when db schema already exists
> ------------------------------------------------------
>
> Key: OOZIE-900
> URL: https://issues.apache.org/jira/browse/OOZIE-900
> Project: Oozie
> Issue Type: Improvement
> Components: scripts
> Affects Versions: 3.2.0
> Reporter: Rajesh Koilpillai
> Priority: Trivial
> Attachments: OOZIE-900.patch
>
>
> If the schema already exists, just display a message instead of throwing an exception.
> bin/ooziedb.sh create -sqlfile oozie.sql
> Validate DB Connection
> DONE
> Check DB schema does not exist
> Error: DB schema exists
> --------------------------------------
> java.lang.Exception: DB schema exists
> at org.apache.oozie.tools.OozieDBCLI.validateDBSchema(OozieDBCLI.java:383)
> at org.apache.oozie.tools.OozieDBCLI.createDB(OozieDBCLI.java:168)
> at org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:112)
> at org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:63)
> --------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira