I would suggest removing -Pdist in the initial mvn command.  That should
only be used to build tarballs for distribution.  So your initial mvn
command should just be:
mvn clean install -DskipTests

Alan.

On Sat, Sep 23, 2017 at 3:55 AM, eric wong <win19...@gmail.com> wrote:

> I try to add some q file test to hive, so follow hive dev documents, but
> build error occur.
>
> Any suggestion would be welcome, thanks.
>
> command list:
> git fetch
> git checkout -b master-0923 origin/master
> mvn clean install -DskipTests -Pdist
> mvn test -Pitests -Dtest=TestCliDriver -Dqfile=union_different_types_three.q
> -Dtest.output.overwrite=true
>
>
> mvn error stacktrace:
>
> [INFO] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java:
> Some input files use unchecked or unsafe operations.
> [INFO] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java:
> Recompile with -Xlint:unchecked for details.
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/beeline/hs2connection/
> BeelineWithHS2ConnectionFileTestBase.java:[145,12] cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/beeline/hs2connection/
> BeelineWithHS2ConnectionFileTestBase.java:[151,12] cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/beeline/hs2connection/
> BeelineWithHS2ConnectionFileTestBase.java:[169,52] cannot find symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestXSRFFilter.java:[56,12]
> cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestXSRFFilter.java:[61,12]
> cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestXSRFFilter.java:[70,51]
> cannot find symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestServiceDiscoveryWithMiniHS2.java:[55,12]
> cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestServiceDiscoveryWithMiniHS2.java:[72,12]
> cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestServiceDiscoveryWithMiniHS2.java:[77,55]
> cannot find symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestSSL.java:[73,12] cannot find
> symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestSSL.java:[79,12] cannot find
> symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestSSL.java:[85,51] cannot find
> symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestSSL.java:[441,73] cannot find
> symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestSSL.java:[475,73] cannot find
> symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hadoop/hive/ql/
> TestAutoPurgeTables.java:[153,16] cannot find symbol
>   symbol:   method cleanup()
>   location: variable miniHS2 of type org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java:[94,12]
> cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java:[204,67]
> cannot find symbol
>   symbol:   method cleanupLocalDirOnStartup(boolean)
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2.Builder
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java:[221,14]
> cannot find symbol
>   symbol:   method cleanup()
>   location: variable miniHS2 of type org.apache.hive.jdbc.miniHS2.MiniHS2
> [ERROR] /home/master/haihua/project/hive-official/itests/hive-
> unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java:[223,12]
> cannot find symbol
>   symbol:   method cleanupLocalDir()
>   location: class org.apache.hive.jdbc.miniHS2.MiniHS2
>
>
>
> --
> Wang Haihua
>

Reply via email to