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

Hive QA commented on HIVE-14926:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12833143/HIVE-14926.1.patch

{color:red}ERROR:{color} -1 due to build exiting with an error

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/1532/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/1532/console
Test logs: 
http://ec2-204-236-174-241.us-west-1.compute.amazonaws.com/logs/PreCommit-HIVE-Build-1532/

Messages:
{noformat}
**** This message was trimmed, see log for full details ****
     [exec] + local md5File=spark-2.0.0-bin-hadoop2-without-hive.tgz.md5sum
     [exec] + curl -Sso 
./../thirdparty/spark-2.0.0-bin-hadoop2-without-hive.tgz.md5sum 
http://d3jw87u4immizc.cloudfront.net/spark-tarball/spark-2.0.0-bin-hadoop2-without-hive.tgz.md5sum
     [exec] + cd ./../thirdparty
     [exec] + md5sum -c spark-2.0.0-bin-hadoop2-without-hive.tgz.md5sum
     [exec] + cd -
     [exec] + tar -zxf ./../thirdparty/spark-2.0.0-bin-hadoop2-without-hive.tgz 
-C ./target
     [exec] spark-2.0.0-bin-hadoop2-without-hive.tgz: OK
     [exec] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit
     [exec] + mv ./target/spark-2.0.0-bin-hadoop2-without-hive ./target/spark
     [exec] + cp -f ./target/../../..//data/conf/spark/log4j2.properties 
./target/spark/conf/
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ hive-it-unit 
---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
hive-it-unit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/main/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (define-classpath) @ hive-it-unit ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hive-it-unit 
---
[INFO] Compiling 2 source files to 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
hive-it-unit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (setup-test-dirs) @ hive-it-unit ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/tmp
    [mkdir] Created dir: 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/warehouse
    [mkdir] Created dir: 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/tmp/conf
     [copy] Copying 15 files to 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/tmp/conf
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (setup-metastore-scripts) @ hive-it-unit 
---
[INFO] Executing tasks

main:
    [mkdir] Created dir: 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/tmp/scripts/metastore
     [copy] Copying 337 files to 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/tmp/scripts/metastore
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
hive-it-unit ---
[INFO] Compiling 114 source files to 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/target/test-classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java:
 Some input files use or override a deprecated API.
[WARNING] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java:
 Recompile with -Xlint:deprecation for details.
[WARNING] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java:
 Some input files use unchecked or unsafe operations.
[WARNING] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java:
 Recompile with -Xlint:unchecked for details.
[INFO] 4 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[81,17]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
  required: java.sql.Connection
  found: no arguments
  reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[97,15]
 doUpgrade(java.lang.String) has private access in 
org.apache.hive.beeline.HiveSchemaTool
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[100,17]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
  required: java.sql.Connection
  found: no arguments
  reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[114,15]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
  required: java.sql.Connection
  found: no arguments
  reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[127,17]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
  required: java.sql.Connection
  found: no arguments
  reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[158,15]
 doUpgrade(java.lang.String) has private access in 
org.apache.hive.beeline.HiveSchemaTool
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[169,15]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
  required: java.sql.Connection
  found: no arguments
  reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[195,9]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[237,9]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[282,9]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[324,39]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: variable testDbParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[359,39]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: variable testDbParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[401,9]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[437,40]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: variable noDbOptParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[455,31]
 cannot find symbol
  symbol:   method buildCommand(java.lang.String,java.lang.String)
  location: variable dbOptParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[INFO] 15 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Hive Integration - Parent ......................... SUCCESS [1.662s]
[INFO] Hive Integration - Custom Serde ................... SUCCESS [3.993s]
[INFO] Hive Integration - Custom udfs .................... SUCCESS [0.754s]
[INFO] Hive Integration - Custom UDFs - udf-classloader-util  SUCCESS [0.833s]
[INFO] Hive Integration - Custom UDFs - udf-classloader-udf1  SUCCESS [0.914s]
[INFO] Hive Integration - Custom UDFs - udf-classloader-udf2  SUCCESS [0.773s]
[INFO] Hive Integration - Custom UDFs - udf-vectorized-badexample  SUCCESS 
[0.661s]
[INFO] Hive Integration - HCatalog Unit Tests ............ SUCCESS [3.752s]
[INFO] Hive Integration - Testing Utilities .............. SUCCESS [5.312s]
[INFO] Hive Integration - Unit Tests ..................... FAILURE [9.560s]
[INFO] Hive Integration - Blobstore Tests ................ SKIPPED
[INFO] Hive Integration - Test Serde ..................... SKIPPED
[INFO] Hive Integration - QFile Tests .................... SKIPPED
[INFO] Hive Integration - QFile Accumulo Tests ........... SKIPPED
[INFO] JMH benchmark: Hive ............................... SKIPPED
[INFO] Hive Integration - Unit Tests - Hadoop 2 .......... SKIPPED
[INFO] Hive Integration - Unit Tests with miniKdc ........ SKIPPED
[INFO] Hive Integration - QFile Spark Tests .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.963s
[INFO] Finished at: Thu Oct 13 15:31:05 UTC 2016
[INFO] Final Memory: 106M/727M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile 
(default-testCompile) on project hive-it-unit: Compilation failure: Compilation 
failure:
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[81,17]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
[ERROR] required: java.sql.Connection
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[97,15]
 doUpgrade(java.lang.String) has private access in 
org.apache.hive.beeline.HiveSchemaTool
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[100,17]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
[ERROR] required: java.sql.Connection
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[114,15]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
[ERROR] required: java.sql.Connection
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[127,17]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
[ERROR] required: java.sql.Connection
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[158,15]
 doUpgrade(java.lang.String) has private access in 
org.apache.hive.beeline.HiveSchemaTool
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[169,15]
 method verifySchemaVersion in class org.apache.hive.beeline.HiveSchemaTool 
cannot be applied to given types;
[ERROR] required: java.sql.Connection
[ERROR] found: no arguments
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[195,9]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[237,9]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[282,9]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[324,39]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: variable testDbParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[359,39]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: variable testDbParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[401,9]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: interface 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[437,40]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: variable noDbOptParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] 
/data/hive-ptest/working/apache-github-source-source/itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java:[455,31]
 cannot find symbol
[ERROR] symbol:   method buildCommand(java.lang.String,java.lang.String)
[ERROR] location: variable dbOptParser of type 
org.apache.hive.beeline.HiveSchemaHelper.NestedScriptParser
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hive-it-unit
+ exit 1
'
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12833143 - PreCommit-HIVE-Build

> Keep Schema in consistent state where schemaTool fails or succeeds.  
> ---------------------------------------------------------------------
>
>                 Key: HIVE-14926
>                 URL: https://issues.apache.org/jira/browse/HIVE-14926
>             Project: Hive
>          Issue Type: Improvement
>          Components: Database/Schema
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-14926.1.patch
>
>
> SchemaTool uses autocommit right now when executing the upgrade or init 
> scripts. Seems we should use database transaction to commit or roll back to 
> keep schema consistent.  



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

Reply via email to