We already allow setting default interpreter when creating note. Another
way to set default interpreter is to reorder the interpreter setting
binding in note page.

But personally I don't recommend user to use short interpreter name because
of default interpreter. 2 Reaons:
1. It introduce in-accurate info. e.g. In our product, we have 2 spark
interpreters (`spark`: for spark 1.x & `spark2` for spark 2.x).  Then user
often specify `%spark` for spark interpreter. But it could mean both
`%spark.spark`  and `%spark2.spark`, So usually it is very hard to tell
what's wrong when user expect to work spark2 but actually he still use
spark 1.x. So usually we would recommend user to specify the full qualified
interpreter name. Just type several more characters which just cost 2
seconds but make it more clear and readable.
2. Another issue is that interpreter binding is stored in interpreter.json,
that means if they export this note to another zeppelin instance, the
default interpreter won't work.

So I don't think setting default interpreter via interpreter binding is
valuable for users. If user really want to do that, I would suggest to
store it in note.json instead of interpreter.json


Jongyoul Lee <jongy...@gmail.com>于2018年7月6日周五 下午3:36写道:

> There are two purposes of interpreter binding. One is what you mentioned
> and another one is to manage a default interpreter. If we provide a new way
> to set default interpreter, I think we can remove them :-) We could set
> permissions in other ways.
>
> Overall, +1
>
> On Fri, Jul 6, 2018 at 4:24 PM, Jeff Zhang <zjf...@gmail.com> wrote:
>
>> Hi Folks,
>>
>> I raise this thread to discuss whether we need the interpreter binding.
>> Currently when user create notes, they have to bind interpreters to their
>> notes in note page. Otherwise they will hit interpreter not found issue.
>> Besides that in zeppelin server side, we maintain the interpreter binding
>> info in memory as well as in interpreter.json.
>>
>> IMHO, it is not necessary to do interpreter binding. Because it just add
>> extra burden to maintain the interpreter binding info in zeppelin server
>> side, and doesn't introduce any benefits. The only benefit is that we will
>> check whether user have permission to use this interpreter, but actually
>> zeppelin will check the permission when running paragraph, so I don't think
>> we need to introduce interpreter binding just for this kind of permission
>> check that we will do later.
>>
>> So overall, I would suggest to remove interpreter binding feature.  What
>> do you think ?
>>
>
>
>
> --
> 이종열, Jongyoul Lee, 李宗烈
> http://madeng.net
>

Reply via email to