Re: Setting default interpreter at notebook level

2016-07-29 Thread Abul Basar
Hi Jongyoul

Thanks for the information.

-AB

On Thu, Jul 28, 2016 at 8:43 PM, Jongyoul Lee  wrote:

> Hi Abul,
>
> Concerning "defaultInterpreter", it is a feature of current master and
> doesn't work at 0.6.0. Sorry for wrong information. And for now, we don't
> have any specific plan for supporting different default interpreter with
> same interpreter setting. Thus, in your case, %r tags is a proper way for
> now. I also don't think it's the best. I hope Zeppelin support this
> feature, too.
>
> Regards,
> Jongyoul
>
> On Thu, Jul 28, 2016 at 10:54 PM, Abul Basar  wrote:
>
>> Hello Jongyoul,
>>
>> I could not find the file interpreter-setting.json, but I found a file
>> conf/interpreter.json. I added a property "default":"true"
>> for interpreter "org.apache.zeppelin.spark.SparkRInterpreter". I restarted
>> zeppelin demon service. But, R did not work as default interpreter.
>>
>> Then I changed conf/zeppelin-site.xml to alter the sequence of
>> the interpreter, putting org.apache.zeppelin.spark.SparkRInterpreter as
>> first interpreter. This worked. But this solution is not practical. If want
>> to work on a R notebook and a scala notebook in parallel, this mechanism
>> require me to touch conf/zeppelin-site.xml file or keep on using %r tags
>> on each cell.
>>
>> Thanks!
>>
>> -AB
>>
>> On Mon, Jul 25, 2016 at 3:30 PM, Jongyoul Lee  wrote:
>>
>>> Hello Abul,
>>>
>>> Changing orders within a group dynamically is not supported yet. You can
>>> change it by making interpreter-setting.json in a resources directory In a
>>> interpreter-setting.json, you can find a property named `default`. If it's
>>> true, That will be a default interpreter in a group. If you don't want to
>>> compile Zeppelin again, copy interpreter-setting.json into
>>> interpreter/spark/ and open it and change it. It will also have a same
>>> effect.
>>>
>>> Hope this help,
>>> Jongyoul
>>>
>>> On Mon, Jul 25, 2016 at 4:39 PM, Abul Basar  wrote:
>>>
 Hi Krishnaprasad,

 Yes, I have played around with that feature. What I found is "spark,
 pyspark, r, sql" are grouped together. I use Zeppelin for Spark projects.
 So I need to set one of these sub-categories as default. Most often I use
 scala for Spark. But I should be able to create a notebook using r (which
 essentially is SparkR) as a default. Please let me know if I am missing
 something.

 Thanks!
 - AB

 On Mon, Jul 25, 2016 at 12:45 PM, Krishnaprasad A S <
 krishna.pra...@flytxt.com> wrote:

> Hi Abul,
>  You can change the default interpreter for each notebook through
> zeppelin web UI.
> Go to the notebook and then settings(up right corner), there you can
> find Interpreter binding option. You can reorder the interpreters by drag
> and drop. The first one will be default.
>
> Hope this helps.
>
> Regards,
> Krishnaprasad
>
> On Mon, Jul 25, 2016 at 12:01 PM, Abul Basar 
> wrote:
>
>> I know there is a way to set up a default interpreter at Zepplin
>> using zeppelin.interpreters property in conf/zeppelin-site.xml. The
>> setting is global is nature.
>>
>> But, is it possible to create a notebook level setting for
>> interpreter? For example, in a notebook I want to set the default
>> interpreter at R so that for every code block i do not have to start with
>> "%spark.r", while on another notebook, I want to set the default
>> interpreter as Scala.
>>
>> I am using v0.6
>>
>> AB
>>
>
>
>
> --
> Krishnaprasad A S
> Lead Engineer
> Flytxt
> Skype: krishnaprasadas
> M: +91 8907209454 | O: +91 471.3082753 | F: +91 471.2700202
> www.flytxt.com | Visit our blog  | Follow us
>  | Connect on LinkedIn
> 
>


>>>
>>>
>>> --
>>> 이종열, Jongyoul Lee, 李宗烈
>>> http://madeng.net
>>>
>>
>>
>
>
> --
> 이종열, Jongyoul Lee, 李宗烈
> http://madeng.net
>


Re: Setting default interpreter at notebook level

2016-07-28 Thread Jongyoul Lee
Hi Abul,

Concerning "defaultInterpreter", it is a feature of current master and
doesn't work at 0.6.0. Sorry for wrong information. And for now, we don't
have any specific plan for supporting different default interpreter with
same interpreter setting. Thus, in your case, %r tags is a proper way for
now. I also don't think it's the best. I hope Zeppelin support this
feature, too.

Regards,
Jongyoul

On Thu, Jul 28, 2016 at 10:54 PM, Abul Basar  wrote:

> Hello Jongyoul,
>
> I could not find the file interpreter-setting.json, but I found a file
> conf/interpreter.json. I added a property "default":"true"
> for interpreter "org.apache.zeppelin.spark.SparkRInterpreter". I restarted
> zeppelin demon service. But, R did not work as default interpreter.
>
> Then I changed conf/zeppelin-site.xml to alter the sequence of
> the interpreter, putting org.apache.zeppelin.spark.SparkRInterpreter as
> first interpreter. This worked. But this solution is not practical. If want
> to work on a R notebook and a scala notebook in parallel, this mechanism
> require me to touch conf/zeppelin-site.xml file or keep on using %r tags
> on each cell.
>
> Thanks!
>
> -AB
>
> On Mon, Jul 25, 2016 at 3:30 PM, Jongyoul Lee  wrote:
>
>> Hello Abul,
>>
>> Changing orders within a group dynamically is not supported yet. You can
>> change it by making interpreter-setting.json in a resources directory In a
>> interpreter-setting.json, you can find a property named `default`. If it's
>> true, That will be a default interpreter in a group. If you don't want to
>> compile Zeppelin again, copy interpreter-setting.json into
>> interpreter/spark/ and open it and change it. It will also have a same
>> effect.
>>
>> Hope this help,
>> Jongyoul
>>
>> On Mon, Jul 25, 2016 at 4:39 PM, Abul Basar  wrote:
>>
>>> Hi Krishnaprasad,
>>>
>>> Yes, I have played around with that feature. What I found is "spark,
>>> pyspark, r, sql" are grouped together. I use Zeppelin for Spark projects.
>>> So I need to set one of these sub-categories as default. Most often I use
>>> scala for Spark. But I should be able to create a notebook using r (which
>>> essentially is SparkR) as a default. Please let me know if I am missing
>>> something.
>>>
>>> Thanks!
>>> - AB
>>>
>>> On Mon, Jul 25, 2016 at 12:45 PM, Krishnaprasad A S <
>>> krishna.pra...@flytxt.com> wrote:
>>>
 Hi Abul,
  You can change the default interpreter for each notebook through
 zeppelin web UI.
 Go to the notebook and then settings(up right corner), there you can
 find Interpreter binding option. You can reorder the interpreters by drag
 and drop. The first one will be default.

 Hope this helps.

 Regards,
 Krishnaprasad

 On Mon, Jul 25, 2016 at 12:01 PM, Abul Basar  wrote:

> I know there is a way to set up a default interpreter at Zepplin using 
> zeppelin.interpreters
> property in conf/zeppelin-site.xml. The setting is global is nature.
>
> But, is it possible to create a notebook level setting for
> interpreter? For example, in a notebook I want to set the default
> interpreter at R so that for every code block i do not have to start with
> "%spark.r", while on another notebook, I want to set the default
> interpreter as Scala.
>
> I am using v0.6
>
> AB
>



 --
 Krishnaprasad A S
 Lead Engineer
 Flytxt
 Skype: krishnaprasadas
 M: +91 8907209454 | O: +91 471.3082753 | F: +91 471.2700202
 www.flytxt.com | Visit our blog  | Follow us
  | Connect on LinkedIn
 

>>>
>>>
>>
>>
>> --
>> 이종열, Jongyoul Lee, 李宗烈
>> http://madeng.net
>>
>
>


-- 
이종열, Jongyoul Lee, 李宗烈
http://madeng.net


Re: Setting default interpreter at notebook level

2016-07-25 Thread Jongyoul Lee
Hello Abul,

Changing orders within a group dynamically is not supported yet. You can
change it by making interpreter-setting.json in a resources directory In a
interpreter-setting.json, you can find a property named `default`. If it's
true, That will be a default interpreter in a group. If you don't want to
compile Zeppelin again, copy interpreter-setting.json into
interpreter/spark/ and open it and change it. It will also have a same
effect.

Hope this help,
Jongyoul

On Mon, Jul 25, 2016 at 4:39 PM, Abul Basar  wrote:

> Hi Krishnaprasad,
>
> Yes, I have played around with that feature. What I found is "spark,
> pyspark, r, sql" are grouped together. I use Zeppelin for Spark projects.
> So I need to set one of these sub-categories as default. Most often I use
> scala for Spark. But I should be able to create a notebook using r (which
> essentially is SparkR) as a default. Please let me know if I am missing
> something.
>
> Thanks!
> - AB
>
> On Mon, Jul 25, 2016 at 12:45 PM, Krishnaprasad A S <
> krishna.pra...@flytxt.com> wrote:
>
>> Hi Abul,
>>  You can change the default interpreter for each notebook through
>> zeppelin web UI.
>> Go to the notebook and then settings(up right corner), there you can find
>> Interpreter binding option. You can reorder the interpreters by drag and
>> drop. The first one will be default.
>>
>> Hope this helps.
>>
>> Regards,
>> Krishnaprasad
>>
>> On Mon, Jul 25, 2016 at 12:01 PM, Abul Basar  wrote:
>>
>>> I know there is a way to set up a default interpreter at Zepplin using 
>>> zeppelin.interpreters
>>> property in conf/zeppelin-site.xml. The setting is global is nature.
>>>
>>> But, is it possible to create a notebook level setting for interpreter?
>>> For example, in a notebook I want to set the default interpreter at R so
>>> that for every code block i do not have to start with "%spark.r", while on
>>> another notebook, I want to set the default interpreter as Scala.
>>>
>>> I am using v0.6
>>>
>>> AB
>>>
>>
>>
>>
>> --
>> Krishnaprasad A S
>> Lead Engineer
>> Flytxt
>> Skype: krishnaprasadas
>> M: +91 8907209454 | O: +91 471.3082753 | F: +91 471.2700202
>> www.flytxt.com | Visit our blog  | Follow us
>>  | Connect on LinkedIn
>> 
>>
>
>


-- 
이종열, Jongyoul Lee, 李宗烈
http://madeng.net


Re: Setting default interpreter at notebook level

2016-07-25 Thread Abul Basar
Hi Krishnaprasad,

Yes, I have played around with that feature. What I found is "spark,
pyspark, r, sql" are grouped together. I use Zeppelin for Spark projects.
So I need to set one of these sub-categories as default. Most often I use
scala for Spark. But I should be able to create a notebook using r (which
essentially is SparkR) as a default. Please let me know if I am missing
something.

Thanks!
- AB

On Mon, Jul 25, 2016 at 12:45 PM, Krishnaprasad A S <
krishna.pra...@flytxt.com> wrote:

> Hi Abul,
>  You can change the default interpreter for each notebook through zeppelin
> web UI.
> Go to the notebook and then settings(up right corner), there you can find
> Interpreter binding option. You can reorder the interpreters by drag and
> drop. The first one will be default.
>
> Hope this helps.
>
> Regards,
> Krishnaprasad
>
> On Mon, Jul 25, 2016 at 12:01 PM, Abul Basar  wrote:
>
>> I know there is a way to set up a default interpreter at Zepplin using 
>> zeppelin.interpreters
>> property in conf/zeppelin-site.xml. The setting is global is nature.
>>
>> But, is it possible to create a notebook level setting for interpreter?
>> For example, in a notebook I want to set the default interpreter at R so
>> that for every code block i do not have to start with "%spark.r", while on
>> another notebook, I want to set the default interpreter as Scala.
>>
>> I am using v0.6
>>
>> AB
>>
>
>
>
> --
> Krishnaprasad A S
> Lead Engineer
> Flytxt
> Skype: krishnaprasadas
> M: +91 8907209454 | O: +91 471.3082753 | F: +91 471.2700202
> www.flytxt.com | Visit our blog  | Follow us
>  | Connect on LinkedIn
> 
>


Re: Setting default interpreter at notebook level

2016-07-25 Thread Krishnaprasad A S
Hi Abul,
 You can change the default interpreter for each notebook through zeppelin
web UI.
Go to the notebook and then settings(up right corner), there you can find
Interpreter binding option. You can reorder the interpreters by drag and
drop. The first one will be default.

Hope this helps.

Regards,
Krishnaprasad

On Mon, Jul 25, 2016 at 12:01 PM, Abul Basar  wrote:

> I know there is a way to set up a default interpreter at Zepplin using 
> zeppelin.interpreters
> property in conf/zeppelin-site.xml. The setting is global is nature.
>
> But, is it possible to create a notebook level setting for interpreter?
> For example, in a notebook I want to set the default interpreter at R so
> that for every code block i do not have to start with "%spark.r", while on
> another notebook, I want to set the default interpreter as Scala.
>
> I am using v0.6
>
> AB
>



-- 
Krishnaprasad A S
Lead Engineer
Flytxt
Skype: krishnaprasadas
M: +91 8907209454 | O: +91 471.3082753 | F: +91 471.2700202
www.flytxt.com | Visit our blog  | Follow us
 | Connect on LinkedIn