Re: Re: Error compiling Ambari 2.7.7.0.0

2023-03-20 Thread Samy Doe
Hello Luxiang,

thank you for getting back to me. I am using Ubuntu/Debian, maybe that's
why the same error is not appearing on centos7. I think I have a newer
version of Maven though. I will retry with the older one.

Best Regards,
Samy



On Fri, Mar 17, 2023 at 2:26 PM Ice Blue  wrote:

> Hello Samy,
>
>
>
> Actually, I have not encountered related errors about
> "ambari-metrics-common" dependency.
>
> But if you check ambari-metrics directory at ambari root path, you can
> find ambari-metrics-common
>
> directory easily. So, I trust the artifact
> "org.apache.ambari:ambari-metrics-common" should be found
>
> at your local path, not hortonworks repo or some repo else.
>
>
>
> I'm not sure, but I guess the error just because maven can not get
> ambari-metrics module correctly.
>
> Maybe you can check sub module dependency in *pom.xml* if you modified it
> before. In addition,
>
> what’s your build command and maven version? For me, I just build *RPM*
> package with *CentOS7* and
>
> *Maven 3.3.9*, if you like you can try and modify build command I used,
> also you can found it at
>
>
> https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.7,
> like this:
>
>
>
> mvn version:set -DnewVersion=2.7.7.0.0
>
> mvn -B clean install rpm:rpm -DnewVersion=2.7.7.0.0
> -DbuildNumber=388e072381e71c7755673b7743531c03a4d61be8 -DskipTests
> -Dpython.ver="python >= 2.6"
>
>
>
> Best regards,
>
> Luxiang Wang
>


RE: Re: Error compiling Ambari 2.7.7.0.0

2023-03-17 Thread Ice Blue
Hello Samy,


Actually, I have not encountered related errors about "ambari-metrics-common" 
dependency.
But if you check ambari-metrics directory at ambari root path, you can find 
ambari-metrics-common
directory easily. So, I trust the artifact 
"org.apache.ambari:ambari-metrics-common" should be found
at your local path, not hortonworks repo or some repo else.

I'm not sure, but I guess the error just because maven can not get 
ambari-metrics module correctly.
Maybe you can check sub module dependency in pom.xml if you modified it before. 
In addition,
what’s your build command and maven version? For me, I just build RPM package 
with CentOS7 and
Maven 3.3.9, if you like you can try and modify build command I used, also you 
can found it at
https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.7,
 like this:

mvn version:set -DnewVersion=2.7.7.0.0
mvn -B clean install rpm:rpm -DnewVersion=2.7.7.0.0 
-DbuildNumber=388e072381e71c7755673b7743531c03a4d61be8 -DskipTests 
-Dpython.ver="python >= 2.6"

Best regards,
Luxiang Wang


Re: Error compiling Ambari 2.7.7.0.0

2023-03-16 Thread Samy Doe
Hello,
thank you for the insight. I managed to pass the Metrics issue but now I am
stuck somewhere else in the compiling of ambari-server.

*[ERROR] Failed to execute goal on project ambari-server: Could not resolve
dependencies for project org.apache.ambari:ambari-server:jar:2.7.7.0.0:
Failed to collect dependencies at
org.apache.ambari:ambari-metrics-common:jar:2.7.7.0.0: Failed to read
artifact descriptor for
org.apache.ambari:ambari-metrics-common:jar:2.7.7.0.0: Could not transfer
artifact org.apache.ambari:ambari-metrics-common:pom:2.7.7.0.0 from/to
private-nexus
(https:private-nexus.hortonworks.com/content/content/groups/public/
):
Transfer failed for
https:private-nexus.hortonworks.com/content/content/groups/public/org/apache/ambari/ambari-metrics-common/2.7.7.0.0/ambari-metrics-common-2.7.7.0.0.pom
:
URI does not specify a valid host name:
https:private-nexus.hortonworks.com/content/content/groups/public/org/apache/ambari/ambari-metrics-common/2.7.7.0.0/ambari-metrics-common-2.7.7.0.0.pom

-> [Help 1]*

I tried to change the pom.xml file link in the ambari main project to
repo.hortonworks* (replacing the private-nexus with repo) which is a
solution/suggestion I found online but the same error persists even with
the new link. How do I update the pom.xml to avoid such errors in the
future?

Best regards,
Samy

On Mon, Mar 13, 2023 at 1:44 PM Ice Blue  wrote:

> Hello Samy,
>
>
>
> Sometimes before, I builed ambari 2.7.7.0.0 successfully with the same
> issue. For the first issue abount Ambari Metrics Storm Sink (Legacy), you
> can skip legacy module, just remove
> ambari-metrics-storm-sink-legacy at
> ./ambari-metrics/pom.xml. For the second issue abount  dependencies for
> ambari-metrics-timelineservice, you can try to change zookeeper version to
> 3.4.5 to replace hortonworks zookeeper.
>
>
>
> One more thing, if you want to use the latest BIGTOP(3.2.0) stack rather
> than HDP stack, you can wait for release-3.0.0 or use trunk branch rather
> than 2.7.7.0.0, the issues abount compiling was solved in 3.0.0, and it
> will coming soon (
> https://lists.apache.org/thread/nd5nw7dvldkg4ro36pkpsyt1r1xo371s)
>
>
>
> Best regards,
>
> Luxiang Wang
>


RE: Error compiling Ambari 2.7.7.0.0

2023-03-13 Thread Ice Blue
Hello Samy,

Sometimes before, I builed ambari 2.7.7.0.0 successfully with the same issue. 
For the first issue abount Ambari Metrics Storm Sink (Legacy), you can skip 
legacy module, just remove ambari-metrics-storm-sink-legacy at 
./ambari-metrics/pom.xml. For the second issue abount  dependencies for 
ambari-metrics-timelineservice, you can try to change zookeeper version to 
3.4.5 to replace hortonworks zookeeper.

One more thing, if you want to use the latest BIGTOP(3.2.0) stack rather than 
HDP stack, you can wait for release-3.0.0 or use trunk branch rather than 
2.7.7.0.0, the issues abount compiling was solved in 3.0.0, and it will coming 
soon (https://lists.apache.org/thread/nd5nw7dvldkg4ro36pkpsyt1r1xo371s)

Best regards,
Luxiang Wang


Re: Error compiling Ambari 2.7.7.0.0

2023-02-19 Thread Samy Doe
Follow up, to my previous email.
This is apparently an issue that affects a lot of packages. The default
ambari version nr 2.7.7 does not have an equivalency for all packages.
Example of a similar identical error for another instance:


*[ERROR] Failed to execute goal on project ambari-metrics-timelineservice:
Could not resolve dependencies for project
org.apache.ambari:ambari-metrics-timelineservice:jar:2.7.7.0.0: Failure to
find org.apache.zookeeper:zookeeper:jar:3.4.5.1.3.0.0-107 in
https://repo.hortonworks.com/content/groups/public/
 was cached in the
local repository, resolution will not be reattempted until the update
interval of apache-hadoop has elapsed or updates are forced -> [Help
1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project ambari-metrics-timelineservice: Could not resolve
dependencies for project
org.apache.ambari:ambari-metrics-timelineservice:jar:2.7.7.0.0: Failure to
find org.apache.zookeeper:zookeeper:jar:3.4.5.1.3.0.0-107 in
https://repo.hortonworks.com/content/groups/public/
 was cached in the
local repository, resolution will not be reattempted until the update
interval of apache-hadoop has elapsed or updates are forced*

Can someone fix the referencing on the back end or is there a way / would
it work without throwing errors, to custom reference the version for each
package?

Best Regards,
Samy

On Sun, Feb 19, 2023 at 11:57 PM Samy Doe  wrote:

> Hello everyone,
>
> I am trying to compile Ambari 2.7.7.0.0 according to the official
> installation guide and it fails for Storm Sink (Legacy).
> The installation is querying the correct (updated) repository
> https://repo.hortonworks.com/content/groups/public/
> however it seems that the package itself is not available anymore. How can
> I go about fixing this and complete the compiling?
>
> Best Regards,
> Samy
>
>
>
> ---
>
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Main 2.7.7.0.0 .. SUCCESS [
> 1.895 s]
> [INFO] Apache Ambari Project POM 2.7.7.0.0  SUCCESS [
> 0.075 s]
> [INFO] Ambari Web 2.7.7.0.0 ... SUCCESS [
> 51.419 s]
> [INFO] Ambari Views 2.7.7.0.0 . SUCCESS [
> 1.144 s]
> [INFO] Ambari Admin View 2.7.7.0.0  SUCCESS [
> 26.691 s]
> [INFO] ambari-utility 1.0.0.0-SNAPSHOT  SUCCESS [
> 6.368 s]
> [INFO] ambari-metrics 2.7.7.0.0 ... SUCCESS [
> 0.309 s]
> [INFO] Ambari Metrics Common 2.7.7.0.0  SUCCESS [
> 5.595 s]
> [INFO] Ambari Metrics Hadoop Sink 2.7.7.0.0 ... SUCCESS [
> 3.184 s]
> [INFO] Ambari Metrics Flume Sink 2.7.7.0.0  SUCCESS [
> 2.005 s]
> [INFO] Ambari Metrics Kafka Sink 2.7.7.0.0  SUCCESS [
> 2.255 s]
> [INFO] Ambari Metrics Storm Sink 2.7.7.0.0  SUCCESS [
> 2.023 s]
> [INFO] Ambari Metrics Storm Sink (Legacy) 2.7.7.0.0 ... FAILURE [
> 0.046 s]
> [INFO] Ambari Metrics Collector 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Metrics Monitor 2.7.7.0.0 ... SKIPPED
> [INFO] Ambari Metrics Grafana 2.7.7.0.0 ... SKIPPED
> [INFO] Ambari Metrics Host Aggregator 2.7.7.0.0 ... SKIPPED
> [INFO] Ambari Metrics Assembly 2.7.7.0.0 .. SKIPPED
> [INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT  SKIPPED
> [INFO] Ambari Server 2.7.7.0.0  SKIPPED
> [INFO] Ambari Functional Tests 2.7.7.0.0 .. SKIPPED
> [INFO] Ambari Agent 2.7.7.0.0 . SKIPPED
> [INFO] ambari-logsearch 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Logsearch Appender 2.7.7.0.0  SKIPPED
> [INFO] Ambari Logsearch Config Api 2.7.7.0.0 .. SKIPPED
> [INFO] Ambari Logsearch Config JSON 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Logsearch Config Solr 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Logsearch Config Zookeeper 2.7.7.0.0  SKIPPED
> [INFO] Ambari Logsearch Config Local 2.7.7.0.0  SKIPPED
> [INFO] Ambari Logsearch Log Feeder Plugin Api 2.7.7.0.0 ... SKIPPED
> [INFO] Ambari Logsearch Log Feeder Container Registry 2.7.7.0.0 SKIPPED
> [INFO] Ambari Logsearch Log Feeder 2.7.7.0.0 .. SKIPPED
> [INFO] Ambari Logsearch Web 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Logsearch Server 2.7.7.0.0 .. SKIPPED
> [INFO] Ambari Logsearch Assembly 2.7.7.0.0  SKIPPED
> [INFO] Ambari Logsearch Integration Test 2.7.7.0.0  SKIPPED
> [INFO] ambari-infra 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Infra Solr Client 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Infra Solr Plugin 2.7.7.0.0 . SKIPPED
> [INFO] Ambari Infra Manager