[
https://issues.apache.org/jira/browse/AMBARI-25743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17710367#comment-17710367
]
Charming Wu commented on AMBARI-25743:
--------------------------------------
I think building the ambari command requires adding the specified version, for
example: mvn -B clean install rpm:rpm -DnewVersion=2.7.5.0.0 -DskipTests
-Drat.skip . In addition, you need to add the corresponding buildNumber before
starting the Ambari, for example, export buildNumber=2.7.5.0.0.
> Build number cannot be resolved sometimes on Ambari Agent
> ---------------------------------------------------------
>
> Key: AMBARI-25743
> URL: https://issues.apache.org/jira/browse/AMBARI-25743
> Project: Ambari
> Issue Type: Bug
> Reporter: Zhiguo Wu
> Priority: Major
> Attachments: image-2022-09-28-10-04-34-754.png,
> image-2022-09-28-10-05-48-072.png
>
>
> Variable `buildNumber` cannot be resolved sometimes on Ambari Agent after I
> run with `mvn -B clean install -DskipTests -Drat.skip=true`, but works fine
> on Ambari Server.
>
> {code:java}
> [root@ambari-server /]# ambari-agent start
> /var/lib/ambari-agent/bin/ambari-agent: line 23: buildNumber: unbound
> variable [root@ambari-server /]# grep HASH
> /var/lib/ambari-agent/bin/ambari-agent | head -1
> HASH="${buildNumber}"
> [root@ambari-server /]# grep HASH /usr/sbin/ambari-server | head -1
> HASH="8a1d1e72a59f96aa7c775ca101a44a60737b7002"{code}
> !image-2022-09-28-10-04-34-754.png!
> !image-2022-09-28-10-05-48-072.png!
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]