You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Victor Manuel Garcia <vi...@beeva.com> on 2015/06/08 11:19:25 UTC
run paragraph
Hi guys,
I have a question, always being executed one paragraph expect to
finish to run another ....?
It is possible to avoid that...?
thks
--
Victor Manuel García
Ingeniero de Software
[+34] 672104297 | victor.garcia@beeva.com
Re: run paragraph
Posted by moon soo Lee <mo...@apache.org>.
Yes, you need overrides .getScheduler() method.
*createOrGetFIFOScheduler** - *When you want make your paragraphs run one
by one
*createOrGetParallelScheduler - *When you want to allow run paragraphs
parallel. Your interprete() method need to be thread safe.
*createOrGetRemoteScheduler* - Which is for internal use. so you don't want
to use it in your implementation
Thanks,
moon
On Mon, Jun 8, 2015 at 3:32 AM Victor Manuel Garcia <vi...@beeva.com>
wrote:
> Hi moon,
>
> is that I'm developing an interpreter but wanted it to be in parallel
> ... I think I found it where I need to change
>
> is here...?
>
> if (concurrentSQL()) {
> int maxConcurrency = 10;
> return SchedulerFactory.singleton().createOrGetParallelScheduler(
> SparkSqlInterpreter.class.getName() + this.hashCode(),
> maxConcurrency);
> }
>
> another question, what is the difference between:
> - createOrGetParallelScheduler
> - createOrGetFIFOScheduler
> and
> - createOrGetRemoteScheduler
>
> thks
>
> 2015-06-08 12:20 GMT+02:00 moon soo Lee <mo...@apache.org>:
> > Hi,
> >
> > That's depends on implementation of interpreter.
> > For example, SparkSqlInterpreter (conditionally) allows parallel
> execution
> > of paragraphs, while SparkInterpreter doesn't.
> > Which do you use?
> >
> > Thanks,
> > moon
> >
> >
> > On Mon, Jun 8, 2015 at 2:19 AM Victor Manuel Garcia
> > <vi...@beeva.com> wrote:
> >>
> >> Hi guys,
> >>
> >> I have a question, always being executed one paragraph expect to
> >> finish to run another ....?
> >> It is possible to avoid that...?
> >>
> >> thks
> >> --
> >> Victor Manuel García
> >> Ingeniero de Software
> >>
> >> [+34] 672104297 | victor.garcia@beeva.com
>
>
>
> --
> Victor Manuel García
> Ingeniero de Software
>
> [+34] 672104297 | victor.garcia@beeva.com
>
Re: run paragraph
Posted by Victor Manuel Garcia <vi...@beeva.com>.
Hi moon,
is that I'm developing an interpreter but wanted it to be in parallel
... I think I found it where I need to change
is here...?
if (concurrentSQL()) {
int maxConcurrency = 10;
return SchedulerFactory.singleton().createOrGetParallelScheduler(
SparkSqlInterpreter.class.getName() + this.hashCode(),
maxConcurrency);
}
another question, what is the difference between:
- createOrGetParallelScheduler
- createOrGetFIFOScheduler
and
- createOrGetRemoteScheduler
thks
2015-06-08 12:20 GMT+02:00 moon soo Lee <mo...@apache.org>:
> Hi,
>
> That's depends on implementation of interpreter.
> For example, SparkSqlInterpreter (conditionally) allows parallel execution
> of paragraphs, while SparkInterpreter doesn't.
> Which do you use?
>
> Thanks,
> moon
>
>
> On Mon, Jun 8, 2015 at 2:19 AM Victor Manuel Garcia
> <vi...@beeva.com> wrote:
>>
>> Hi guys,
>>
>> I have a question, always being executed one paragraph expect to
>> finish to run another ....?
>> It is possible to avoid that...?
>>
>> thks
>> --
>> Victor Manuel García
>> Ingeniero de Software
>>
>> [+34] 672104297 | victor.garcia@beeva.com
--
Victor Manuel García
Ingeniero de Software
[+34] 672104297 | victor.garcia@beeva.com
Re: run paragraph
Posted by moon soo Lee <mo...@apache.org>.
Hi,
That's depends on implementation of interpreter.
For example, SparkSqlInterpreter (conditionally) allows parallel execution
of paragraphs, while SparkInterpreter doesn't.
Which do you use?
Thanks,
moon
On Mon, Jun 8, 2015 at 2:19 AM Victor Manuel Garcia <vi...@beeva.com>
wrote:
> Hi guys,
>
> I have a question, always being executed one paragraph expect to
> finish to run another ....?
> It is possible to avoid that...?
>
> thks
> --
> Victor Manuel García
> Ingeniero de Software
>
> [+34] 672104297 | victor.garcia@beeva.com
>