Hi,

Thank you very much for your reply !

I tried, versions:set -DnewVersion=NEWVERSION changed the strings before 
“from”,  the strings after “from” are still set as “Unknown”.







From the source, 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-version-info.properties,
 I found the following, any idea how or where to set version-info.scm.commit?
version=${pom.version}
revision=${version-info.scm.commit}
branch=${version-info.scm.branch}
user=${user.name}
date=${version-info.build.time}
url=${version-info.scm.uri}
srcChecksum=${version-info.source.md5}

Regards
Arthur


On 14 Sep, 2014, at 4:17 pm, Liu, Yi A <[email protected]> wrote:

> Change Hadoop version     : mvn versions:set -DnewVersion=NEWVERSION
>  
> Regards,
> Yi Liu
>  
> From: [email protected] [mailto:[email protected]] 
> Sent: Sunday, September 14, 2014 1:51 PM
> To: [email protected]
> Cc: [email protected]
> Subject: Re: Hadoop 2.4.1 Compilation, How to specify "HadoopBuildVersion" 
> and "RMBuildVersion"
>  
> (attached print screen) 
>  
> <image001.png>
>  
>  
>  
> On 14 Sep, 2014, at 1:25 pm, [email protected] 
> <[email protected]> wrote:
> 
> 
> Hi,
>  
> To compile Hadoop 2.4.1 , any idea how to specify “hadoop.build.version” ? By 
> modifying pom.xml? or add -Dhadoop.build.version=mybuild?  or specify it by 
> compile command line?
>  
> Regards
> Arthur

Reply via email to