Programatic way to get version

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Programatic way to get version

Trevor Grant
Is there a programatic way to get the Flink version from the scala shell?

I.e. something akin to 
sc.version

I thought I used env.version or something like that once but I couldn't find anything in the scala docs. 

Trevor Grant
Data Scientist

"Fortunate is he, who is able to know the causes of things."  -Virgil

Reply | Threaded
Open this post in threaded view
|

Re: Programatic way to get version

Trevor Grant
dug through the codebase, in case any others want to know:

import org.apache.flink.runtime.util.EnvironmentInformation;

EnvironmentInformation.getVersion()



Trevor Grant
Data Scientist

"Fortunate is he, who is able to know the causes of things."  -Virgil


On Thu, Apr 21, 2016 at 5:05 PM, Trevor Grant <[hidden email]> wrote:
Is there a programatic way to get the Flink version from the scala shell?

I.e. something akin to 
sc.version

I thought I used env.version or something like that once but I couldn't find anything in the scala docs. 

Trevor Grant
Data Scientist

"Fortunate is he, who is able to know the causes of things."  -Virgil


Reply | Threaded
Open this post in threaded view
|

Re: Programatic way to get version

Till Rohrmann
But be aware that this method only returns a non null string if the binaries have been built with Maven. Otherwise it will return null.

Cheers,
Till

On Fri, Apr 22, 2016 at 12:12 AM, Trevor Grant <[hidden email]> wrote:
dug through the codebase, in case any others want to know:

import org.apache.flink.runtime.util.EnvironmentInformation;

EnvironmentInformation.getVersion()



Trevor Grant
Data Scientist

"Fortunate is he, who is able to know the causes of things."  -Virgil


On Thu, Apr 21, 2016 at 5:05 PM, Trevor Grant <[hidden email]> wrote:
Is there a programatic way to get the Flink version from the scala shell?

I.e. something akin to 
sc.version

I thought I used env.version or something like that once but I couldn't find anything in the scala docs. 

Trevor Grant
Data Scientist

"Fortunate is he, who is able to know the causes of things."  -Virgil