You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by mg...@apache.org on 2020/02/11 16:38:52 UTC

[hive] branch master updated: HIVE-22864 Add option to DatabaseRule to run the Schema Tool in verbose mode for tests (Miklos Gergely, reviewed by Laszlo Bodor)

This is an automated email from the ASF dual-hosted git repository.

mgergely pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f46884  HIVE-22864 Add option to DatabaseRule to run the Schema Tool in verbose mode for tests (Miklos Gergely, reviewed by Laszlo Bodor)
8f46884 is described below

commit 8f46884b3989bb3c97eeebd4c4cc221f9e9ad8ee
Author: miklosgergely <mg...@cloudera.com>
AuthorDate: Mon Feb 10 21:59:34 2020 +0100

    HIVE-22864 Add option to DatabaseRule to run the Schema Tool in verbose mode for tests (Miklos Gergely, reviewed by Laszlo Bodor)
---
 standalone-metastore/DEV-README                                       | 2 ++
 .../apache/hadoop/hive/metastore/dbinstall/rules/DatabaseRule.java    | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/standalone-metastore/DEV-README b/standalone-metastore/DEV-README
index ab5df26..84ed938 100644
--- a/standalone-metastore/DEV-README
+++ b/standalone-metastore/DEV-README
@@ -51,6 +51,8 @@ Supported databases for testing:
 -Dit.test=ITestPostgres
 -Dit.test=ITestSqlServer
 
+By adding -Dverbose.schematool the Schema Tool output becomes more detailed.
+
 You can download the Oracle driver at 
 http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
 You should download Oracle 11g Release 1, ojdbc6.jar
diff --git a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/DatabaseRule.java b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/DatabaseRule.java
index 3f82891..a6d22d1 100644
--- a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/DatabaseRule.java
+++ b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/DatabaseRule.java
@@ -61,6 +61,10 @@ public abstract class DatabaseRule extends ExternalResource {
 
   private boolean verbose;
 
+  public DatabaseRule() {
+    verbose = System.getProperty("verbose.schematool") != null;
+  }
+
   public DatabaseRule setVerbose(boolean verbose) {
     this.verbose = verbose;
     return this;