You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "guluo2016 (via GitHub)" <gi...@apache.org> on 2025/02/19 11:26:25 UTC

[PR] AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError [ambari]

guluo2016 opened a new pull request, #3943:
URL: https://github.com/apache/ambari/pull/3943

   ## What changes were proposed in this pull request?
   Fix: [AMBARI-26295](https://issues.apache.org/jira/browse/AMBARI-26295)
   
   ## How was this patch tested?
   Build ambari, deploy ambari, and start it.
   
   Or view dependency relationships through Maven command `mvn dependency:tree`
   Before applying this changes.
   ```
   [INFO] +- org.apache.hadoop:hadoop-common:jar:3.3.4:compile
   [INFO] |  +- org.apache.hadoop.thirdparty:hadoop-shaded-protobuf_3_7:jar:1.1.1:compile
   [INFO] |  +- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
   [INFO] |  +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
   [INFO] |  +- com.sun.jersey:jersey-core:jar:1.19:compile
   [INFO] |  |  \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
   [INFO] |  +- com.sun.jersey:jersey-servlet:jar:1.19:compile
   [INFO] |  +- com.sun.jersey:jersey-json:jar:1.19:compile
   [INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
   [INFO] |  |  \- org.codehaus.jackson:jackson-jaxrs:jar:1.9.2:compile
   [INFO] |  +- com.sun.jersey:jersey-server:jar:1.19:compile
   [INFO] |  +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
   [INFO] |  +- org.apache.avro:avro:jar:1.7.7:compile
   [INFO] |  |  \- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
   [INFO] |  +- com.google.re2j:re2j:jar:1.1:compile
   [INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
   [INFO] |  +- org.apache.curator:curator-client:jar:4.2.0:compile
   [INFO] |  +- org.apache.curator:curator-recipes:jar:4.2.0:compile
   [INFO] |  +- org.apache.kerby:kerb-core:jar:1.0.1:compile
   [INFO] |  |  \- org.apache.kerby:kerby-pkix:jar:1.0.1:compile
   [INFO] |  |     +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
   [INFO] |  |     \- org.apache.kerby:kerby-util:jar:1.0.1:compile
   [INFO] |  +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
   [INFO] |  +- com.fasterxml.woodstox:woodstox-core:jar:5.3.0:compile
   [INFO] |  +- dnsjava:dnsjava:jar:2.1.7:compile
   [INFO] |  \- org.xerial.snappy:snappy-java:jar:1.1.8.2:compile
   ```
   
   After applying this changes.
   ```
   [INFO] +- org.apache.hadoop:hadoop-common:jar:3.3.4:compile
   [INFO] |  +- org.apache.hadoop.thirdparty:hadoop-shaded-protobuf_3_7:jar:1.1.1:compile
   [INFO] |  +- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
   [INFO] |  +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
   [INFO] |  +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
   [INFO] |  +- org.apache.avro:avro:jar:1.7.7:compile
   [INFO] |  |  \- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
   [INFO] |  +- com.google.re2j:re2j:jar:1.1:compile
   [INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
   [INFO] |  +- org.apache.curator:curator-client:jar:4.2.0:compile
   [INFO] |  +- org.apache.curator:curator-recipes:jar:4.2.0:compile
   [INFO] |  +- org.apache.kerby:kerb-core:jar:1.0.1:compile
   [INFO] |  |  \- org.apache.kerby:kerby-pkix:jar:1.0.1:compile
   [INFO] |  |     +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
   [INFO] |  |     \- org.apache.kerby:kerby-util:jar:1.0.1:compile
   [INFO] |  +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
   [INFO] |  +- com.fasterxml.woodstox:woodstox-core:jar:5.3.0:compile
   [INFO] |  +- dnsjava:dnsjava:jar:2.1.7:compile
   [INFO] |  \- org.xerial.snappy:snappy-java:jar:1.1.8.2:compile
   ```
   
   
   Please review [Ambari Contributing Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) before opening a pull request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError [ambari]

Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC merged PR #3943:
URL: https://github.com/apache/ambari/pull/3943


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError [ambari]

Posted by "guluo2016 (via GitHub)" <gi...@apache.org>.
guluo2016 commented on code in PR #3943:
URL: https://github.com/apache/ambari/pull/3943#discussion_r2062357648


##########
ambari-server/pom.xml:
##########
@@ -1650,7 +1650,11 @@
     <dependency>
       <groupId>org.codehaus.jettison</groupId>
       <artifactId>jettison</artifactId>
-      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId> org.codehaus.jackson</groupId>
+      <artifactId>jackson-jaxrs</artifactId>
+      <version>1.9.2</version>

Review Comment:
   Thanks for your review. The update has been made.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError [ambari]

Posted by "jojochuang (via GitHub)" <gi...@apache.org>.
jojochuang commented on code in PR #3943:
URL: https://github.com/apache/ambari/pull/3943#discussion_r2048021990


##########
ambari-agent/pom.xml:
##########
@@ -53,6 +53,7 @@
     <resourcesFolder>${ambari.server.module}/src/main/resources</resourcesFolder>
     <customActionsLocation>${target.cache.dir}/custom_actions</customActionsLocation>
     <empty.dir>src/packages/tarball</empty.dir> <!-- any directory in project with not very big amount of files (not to waste-load them) -->
+    <hadoop.version>3.3.4</hadoop.version>

Review Comment:
   the hadoop version bump is fixed by [AMBARI-26323](https://github.com/apache/ambari/pull/3955/files#top)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError [ambari]

Posted by "sandeep318kumar (via GitHub)" <gi...@apache.org>.
sandeep318kumar commented on code in PR #3943:
URL: https://github.com/apache/ambari/pull/3943#discussion_r2054783545


##########
ambari-server/pom.xml:
##########
@@ -1650,7 +1650,11 @@
     <dependency>
       <groupId>org.codehaus.jettison</groupId>
       <artifactId>jettison</artifactId>
-      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId> org.codehaus.jackson</groupId>
+      <artifactId>jackson-jaxrs</artifactId>
+      <version>1.9.2</version>

Review Comment:
   This artifact has been moved to 
   **com.fasterxml.jackson.jaxrs ยป jackson-jaxrs-json-provider** and this artifact dependency is already added. Can you check once? 
   
   This version[1.9.2] is vulnerable, we should avoid adding vulnerable artifacts.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError [ambari]

Posted by "guluo2016 (via GitHub)" <gi...@apache.org>.
guluo2016 commented on PR #3943:
URL: https://github.com/apache/ambari/pull/3943#issuecomment-2791819765

   Updated 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org