AEM Hive error

Avatar

Avatar
Level 1
Tapan_Agrawal
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
Tapan_Agrawal
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
Tapan_Agrawal
Level 1

11-05-2019

I am trying to connect to Hive through JDBC.

Class.forName("org.apache.hive.jdbc.HiveDriver");

Connection con = DriverManager.getConnection("jdbc:hive2://hs2prod.corp.adobe.com:10000/default", "user", "pass");

Statement sql = con.createStatement();

ResultSet res = sql.executeQuery("SELECT * FROM TABLE_NAME" );

Have added the following dependency to pom.xml

<dependency>

     <groupId>org.apache.hive</groupId>

     <artifactId>hive-jdbc</artifactId>

     <version>2.1.1</version>

     <scope>provided</scope>

</dependency>

Build is success but the OSGi bundle status shows installed instead of active with an error - javax.annotation,version=[1.0,2) -- Cannot be resolved

error.PNG

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-05-2019

How did you build this? The issue is wrong version is reference. You can eliminate this error by opening the Manifest file in the OSGI bundle and remove version. Then the bundle will pick up version AEM exposes.

Avatar

Avatar
Level 1
Tapan_Agrawal
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
Tapan_Agrawal
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
Tapan_Agrawal
Level 1

11-05-2019

I am using AEM 6.4 and have Maven Archetype 13 setup in IntelliJ. After build maven also deploys the bundles to my local instance. Not sure if updating the Manifest in bundle manually will help in the long run. Please suggest

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

12-05-2019