Re: Context when Converting from Yarn Task to Standalone LocalApplicationRunner

2019-04-04 Thread Jeremiah Adams
From: Cameron Lee Sent: Wednesday, April 3, 2019 4:42 PM To: dev@samza.apache.org Subject: Re: Context when Converting from Yarn Task to Standalone LocalApplicationRunner Hi Jeremiah, If you would like to continue to use the low-level API (i.e. StreamTask), then you actually will want to use

Re: Context when Converting from Yarn Task to Standalone LocalApplicationRunner

2019-04-03 Thread Cameron Lee
Hi Jeremiah, If you would like to continue to use the low-level API (i.e. StreamTask), then you actually will want to use TaskApplication, not StreamApplication. Sorry for the confusion regarding the naming of the classes. Take a look at https://samza.apache.org/learn/documentation/latest/api/low-

Re: Context when Converting from Yarn Task to Standalone LocalApplicationRunner

2019-04-03 Thread Yi Pan
Hi, Jeremiah, In the new apis, you should be using ApplicationContainerContextFactory and ApplicationTaskContextFactory to instantiate context objects used in the whole container or in a task instance, respectively. The context factories should be implemented as dependencies injected to your imple