You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Aseem Bansal <as...@gmail.com> on 2016/10/26 10:03:45 UTC

What syntax can be used to specify the latest version of JAR found while using spark submit

Hi

Can someone please share their thoughts on
http://stackoverflow.com/questions/40259022/what-syntax-can-be-used-to-specify-the-latest-version-of-jar-found-while-using-s

Re: What syntax can be used to specify the latest version of JAR found while using spark submit

Posted by Sudev A C <su...@goibibo.com>.
Hi Aseem,

If you are submitting the jar from a shell you could write a simple bash/sh
script to solve your problem.

`print /home/pathtojarfolder/$(ls -t /home/pathtojarfolder/*.jar | head -n
1)`

The above command can be put in your spark-submit command.

Thanks
Sudev

On Wed, Oct 26, 2016 at 3:33 PM, Aseem Bansal <as...@gmail.com> wrote:

> Hi
>
> Can someone please share their thoughts on http://stackoverflow.com/
> questions/40259022/what-syntax-can-be-used-to-specify-
> the-latest-version-of-jar-found-while-using-s
>