I added a unit test for Hive HPL/SQL tool that uses a JDBC connection to access src table.
When I submit my patch, and use URL jdbc:hive2://localhost:10000 I got: java.net.ConnectException: Connection refused When I use URL jdbc:hive2:// I got java.lang.NoClassDefFoundError: org/apache/hadoop/mapreduce/TaskAttemptContext In .pom I use <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>1.2.1</version> <scope>test</scope> </dependency> Can someone please suggest what is the proper way to access src table using JDBC in Hive unit tests when submitting a patch? Thank you, Dmitry