Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-900

Indicate that the exception thrown from the db-cli during an error is for debug purposes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • scripts
    • None

    Description

      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)
      --------------------------------------

      Attachments

        1. OOZIE-900.patch
          0.7 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            rajeshkoil Rajesh Koilpillai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: