HiveRunner | Open Source unit test framework for Hive queries
kandi X-RAY | HiveRunner Summary
kandi X-RAY | HiveRunner Summary
HiveRunner enables you to write Hive SQL as releasable tested artifacts. It will require you to parametrize and modularize Hive SQL in order to make it testable. The bits and pieces of code should then be wired together with some orchestration/workflow/build tool of your choice, to be runnable in your environment (e.g. Oozie, Pentaho, Talend, Maven, etc…). So, even though your current Hive SQL probably won't run off the shelf within HiveRunner, we believe the enforced testability and enabling of a TDD workflow will do as much good to the scripting world of SQL as it has for the Java community.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initializes the configuration
- Configure the meta - store
- Configure file system
- Configure the Tez execution engine
- Executes the hive server
- Initialize HiveServer
- Removes leading and trailing newlines from a String
- Runs the given method
- Runs a single test method
- Overrides the default test rule
- Creates a test rule that overridden in HiveRunnerConfig
- Expand any variable substitution for the expression
- Returns a unique hashCode
- Creates the output stream
- Loads the hive conf system overrides
- Returns a list of statements for the given statement
- Run the test statement
- Create the hive server container
- Returns an OutputStream for a HiveShellResource
- Creates a hashCode of the seed
- Parse a log file
- Get the column names from the given file
- Compares this instance with the specified object
- Evaluate and evaluate a statement
- Compares this script with the specified object
- Append token to current statement
HiveRunner Key Features
HiveRunner Examples and Code Snippets
Community Discussions
Trending Discussions on HiveRunner
QUESTION
I'm trying to create a WS REST using Dropwizard for getting a Hive result of a query and presenting in XML format. Each separated part of this could be done without error.
When I joined everything I reach a incompatibility between Dropwizard and hive-jdbc. Apparently hive-jdbc has jersey 1 as dependency and Dropwizard has jersey 2.
I'm not sure if this is the problem. I'd tried to exclude dependency in pom.xml, but didn't solve.
I tried to make an application just putting hive-jdbc as dependency in pom.xml file without using or importing in any part of the code, and the error still happening.
POM.XML
...ANSWER
Answered 2017-Aug-11 at 14:38Yup, its jersey conflict issue, exclude jersey 1 dependencies (com.sun.jersey) from both hive-jdbc and hadoop-core. Had ran your test application and it worked with below exclusions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install HiveRunner
You can use HiveRunner like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the HiveRunner component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page