Thanks for the heads up, Azuryy. I will pass the information along to the relevant folks at Hortonworks. And yes, you are right. At some point, we merged the code into the common TezClient so that it became easier for the user to toggle session-mode on/off via configuration and not have to write 2 diff code paths based on their run-time use-case.
FWIW, those blogs were written a long time ago and I believe in quite a few scenarios, some of the APIs have probably changed. Please use them as a point of reference to understand some of the building blocks of Tez but they are not the source of truth. For that, it is better to reference the docs at the ASF ( http://tez.apache.org/releases/apache-tez-0-6-0.html for example ). thanks again — Hitesh On Mar 26, 2015, at 3:09 AM, Azuryy Yu <[email protected]> wrote: > Hi, > > Please review this blog, > http://www.hortonworks.com/blog/introducing-tez-sessions/ > > espcially for the section > Using Tez Sessions > > > TezSession is removed, right? > if we want to re-use session in Tez, just do like this: > > TezConfiguration tezConf = new TezConfiguration(); > tezConf.setBoolean(TezConfiguration.TEZ_AM_SESSION_MODE, true); > > Does it right? > > > And, in the section > Example Usage of a Tez Session > > the example link is unreachable. I think it also should be removed or fixed. > > > Thanks. > > -Azuryy >
