You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/09/21 08:17:00 UTC

[jira] [Commented] (IMPALA-10177) run-hive-jdbc.sh throws ClassNotFoundException exception.

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

ASF subversion and git services commented on IMPALA-10177:
----------------------------------------------------------

Commit e038db4479e3ae1232da15d3dbbfdd9aeb058006 in impala's branch refs/heads/master from Zoltan Borok-Nagy
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=e038db4 ]

IMPALA-10177: Generate test-classpath.txt

Currently the hive-jdbc jar is added under the scope 'test'.
Therefore it won't be included in the build-classpath.txt because it
only includes jars from the 'runtime' scope. Therefore
run-hive-jdbc.sh throws ClassNotFoundException exception.

This commit adds a new execution 'write-test-classpath' to pom.xml.
It creates a test-classpath.txt. This can be used by scripts that need
classes from the 'test' scope.

Modified set-classpath.sh as well. If its first argument is 'test',
then it also adds the contents of test-classpath.txt to the CLASSPATH.
Now run-jdbc-client.sh sources 'set-classpath.sh test'.

Testing:
* executed core tests, turned out test_describe_formatted is broken,
  see IMPALA-10176 for details. Disabling that test for now.

Change-Id: I47e4340fde9a5678d94459f676d8894dc5da14dc
Reviewed-on: http://gerrit.cloudera.org:8080/16450
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> run-hive-jdbc.sh throws ClassNotFoundException exception.
> ---------------------------------------------------------
>
>                 Key: IMPALA-10177
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10177
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Zoltán Borók-Nagy
>            Priority: Major
>
> Currently the hive-jdbc jar is added under the scope 'test'.
> Therefore it won't be included in the build-classpath.txt because it only includes jars from the 'runtime' scope. So in the end run-hive-jdbc.sh throws ClassNotFoundException exception.
> We could create a separate file 'test-classpath.txt' that would include the jars from the test scope and use the contents of it during e2e tests.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org