[ 
https://issues.apache.org/jira/browse/AMBARI-25743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhiguo Wu updated AMBARI-25743:
-------------------------------
    Description: 
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!

 

  was:
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 /]# cat /usr/sbin/ambari-server | grep "HASH" | head -1
HASH="8a1d1e72a59f96aa7c775ca101a44a60737b7002"
[root@ambari-server /]# cat /var/lib/ambari-agent/bin/ambari-agent | grep 
"HASH" | head -1
HASH="${buildNumber}"{code}
!image-2022-09-28-10-04-34-754.png!

!image-2022-09-28-10-05-48-072.png!

 


> 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: issues-unsubscr...@ambari.apache.org
For additional commands, e-mail: issues-h...@ambari.apache.org

Reply via email to