Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Impala JDBC42 driver have issues with maven build

avatar
New Member

Hi Team,

 

I am working on a mule integration project and so need to access the Impala database.

 

I am using a generic database connection with the ImpalaJDBC42.jar as the maven dependency.

 

Mule app uses maven plugin to build the app first even before trying to test database connections.

I am getting the following error (abridged version of the stacktrace):


Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at Impala:ImpalaJDBC42:jar:2.6.24.1029
.....
Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at Impala:ImpalaJDBC42:jar:2.6.24.1029Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for Impala:ImpalaJDBC42:jar:2.6.24.102
.....
Caused by: org.apache.maven.model.building.ModelBuildingException: 3 problems were encountered while building the effective model for Impala:ImpalaJDBC${env.JDBC_V}:${env.MAJOR_V}.${env.MINOR_V}.${env.REVISION_V}.${env.BUILD_V}
[ERROR] 'artifactId' with value 'ImpalaJDBC${env.JDBC_V}' does not match a valid id pattern. @
[ERROR] 'dependencies.dependency.artifactId' for sb_ImpalaJDBC${env.JDBC_V}:sb_ImpalaJDBC${env.JDBC_V}:jar with value 'sb_ImpalaJDBC${env.JDBC_V}' does not match a valid id pattern. @
[ERROR] 'dependencies.dependency.groupId' for sb_ImpalaJDBC${env.JDBC_V}:sb_ImpalaJDBC${env.JDBC_V}:jar with value 'sb_ImpalaJDBC${env.JDBC_V}' does not match a valid id pattern. @

I tried adding those properties in the pom.xml but it did not help.

I suspect the jar was not built properly. The variables that were in the jar's pom.xml are not being resolved and so is the error.
Is there a workaround to handle this issue?

Thanks.

 

1 ACCEPTED SOLUTION

avatar
New Member

Resolved it by manually adding it to the mvn repo instead of adding the maven dependency through the Studio.

View solution in original post

1 REPLY 1

avatar
New Member

Resolved it by manually adding it to the mvn repo instead of adding the maven dependency through the Studio.