You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by majian <ma...@nq.com> on 2014/07/01 09:21:44 UTC

build spark assign version number myself?

Hi,all:
 I'm working to compile spark by executing './make-distribution.sh --hadoop 0.20.205.0 --tgz  ',
 after the completion of the compilation I found  that the default version number is "1.1.0-SNAPSHOT"  i.e. spark-1.1.0-SNAPSHOT-bin-0.20.205.tgz,
 who know how to assign version number myself , for example spark-1.1.0-company-bin-0.20.205.tgz  .


Thanks,
majian

Re: build spark assign version number myself?

Posted by Guillaume Ballet <gb...@gmail.com>.
Sorry, there's a typo in my previous post, the line should read:
VERSION=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep
-v "INFO" | tail -n 1 | sed -e 's/SNAPSHOT/$COMPANYNAME/g')


On Tue, Jul 1, 2014 at 10:35 AM, Guillaume Ballet <gb...@gmail.com> wrote:

> You can specify a custom name with the --name option. It will still
> contain 1.1.0-SNAPSHOT, but at least you can specify your company name.
>
> If you want to replace SNAPSHOT with your company name, you will have to
> edit make-distribution.sh and replace the following line:
>
> VERSION=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null |
> grep -v "INFO" | tail -n 1)
>
> with something like
>
> COMPANYNAME="SoullessMegaCorp"
> VERSION=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null |
> grep -v "INFO" | tail -n 1 | sed -e 's/SNAPSHOT/$COMPANYNAME')
>
> and so on for other packages that use their own version scheme.
>
>
>
>
> On Tue, Jul 1, 2014 at 9:21 AM, majian <ma...@nq.com> wrote:
>
>>   Hi,all:
>>
>>  I'm working to compile spark by executing './make-distribution.sh --hadoop
>> 0.20.205.0 --tgz  ',
>>  after the completion of the compilation I found  that the default version number is "1.1.0-SNAPSHOT"
>>  i.e. spark-1.1.0-SNAPSHOT-bin-0.20.205.tgz,
>>  who know how to assign version number myself ,
>> for example spark-1.1.0-company-bin-0.20.205.tgz  .
>>
>>
>> Thanks,
>> majian
>>
>>
>
>

Re: build spark assign version number myself?

Posted by Guillaume Ballet <gb...@gmail.com>.
You can specify a custom name with the --name option. It will still contain
1.1.0-SNAPSHOT, but at least you can specify your company name.

If you want to replace SNAPSHOT with your company name, you will have to
edit make-distribution.sh and replace the following line:

VERSION=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep
-v "INFO" | tail -n 1)

with something like

COMPANYNAME="SoullessMegaCorp"
VERSION=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep
-v "INFO" | tail -n 1 | sed -e 's/SNAPSHOT/$COMPANYNAME')

and so on for other packages that use their own version scheme.




On Tue, Jul 1, 2014 at 9:21 AM, majian <ma...@nq.com> wrote:

>   Hi,all:
>
>  I'm working to compile spark by executing './make-distribution.sh --hadoop
> 0.20.205.0 --tgz  ',
>  after the completion of the compilation I found  that the default version number is "1.1.0-SNAPSHOT"
>  i.e. spark-1.1.0-SNAPSHOT-bin-0.20.205.tgz,
>  who know how to assign version number myself ,
> for example spark-1.1.0-company-bin-0.20.205.tgz  .
>
>
> Thanks,
> majian
>
>