You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tez.apache.org by Azuryy Yu <az...@gmail.com> on 2015/03/26 11:09:18 UTC

Tez blog on Hortonworks is outdate

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 Sessionthe example link is
unreachable. I think it also should be removed or fixed.


Thanks.

-Azuryy

Re: Tez blog on Hortonworks is outdate

Posted by Azuryy Yu <az...@gmail.com>.
Yes. Hitesh, I mainly refer to the Tez docs, just found this blog
deprecated occasionaly.



On Thu, Mar 26, 2015 at 11:41 PM, Hitesh Shah <hi...@apache.org> wrote:

> 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 <az...@gmail.com> 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
> >
>
>

Re: Tez blog on Hortonworks is outdate

Posted by Hitesh Shah <hi...@apache.org>.
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 <az...@gmail.com> 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
>