You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Deepak Subhramanian <de...@gmail.com> on 2016/03/27 17:27:44 UTC

z.run works only once from onClick function on a button

Hi,

I added a button to run a paragraph with new values from text-box.
For some reason the onClick function runs only once.  I am using the
master branch from github.

val button = <div class="btn btn-success btn-sm">Update
Display</div>.onClick{() =>
   z.run("20160326-202433_889465080" )
   z.run("20160326-203128_1912408797")

}

Here is the notebook.

https://github.com/deepakas/zeppelin-gallery/tree/master/wikigraphvis/notebook

Thanks, Deepak

Re: How to configure the hive interpreter to use the embedded hive?

Posted by Jongyoul Lee <jo...@gmail.com>.
Hi Joshua,

Zeppelin doesn't have any hive embedded. HiveInterpreter in Zeppelin is a
connector for external Hive, thus you should use your own hiveserver2
address and set it into default.url in the interpreter setting.

Hope this help
J

On Wed, Mar 30, 2016 at 12:47 AM, Joshua W Hui <jh...@us.ibm.com> wrote:

> Hi Jongyoul,
>
> Thanks for the reply. What url should I set in Hiveserver2 to point to the
> hive embedded inside the zeppelin?
> Regards,
>
> Joshua
>
> [image: Inactive hide details for Jongyoul Lee ---03/28/2016 04:35:44
> PM---Hi Joshua, There are two interpreter to use Hive. If you'd l]Jongyoul
> Lee ---03/28/2016 04:35:44 PM---Hi Joshua, There are two interpreter to use
> Hive. If you'd like to use it from
>
> From: Jongyoul Lee <jo...@gmail.com>
> To: users@zeppelin.incubator.apache.org
> Date: 03/28/2016 04:35 PM
> Subject: Re: How to configure the hive interpreter to use the embedded
> hive?
> ------------------------------
>
>
>
> Hi Joshua,
>
> There are two interpreter to use Hive. If you'd like to use it from
> SparkSql, just copy your hive-site.xml in you conf directory. Otherwise,
> you can set the Hiveserver2 url in your interpreter settings.
>
> Hope this help.
> J
>
> On Tue, Mar 29, 2016 at 6:44 AM, Joshua W Hui <*jhui@us.ibm.com*
> <jh...@us.ibm.com>> wrote:
>
>    Hi,
>
>    Just wonder how I can configure the hive interpreter to use the
>    embedded hive which is part of the default zeppelin install image (0.5.5)
>    Thanks,
>
>    Joshua
>
>
>
>
>
> --
> 이종열, Jongyoul Lee, 李宗烈
> *http://madeng.net* <http://madeng.net/>
>
>


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

Re: How to configure the hive interpreter to use the embedded hive?

Posted by Joshua W Hui <jh...@us.ibm.com>.
Hi Jongyoul,

Thanks for the reply. What url should I set in Hiveserver2 to point to the
hive embedded inside the zeppelin?
Regards,

Joshua



From:	Jongyoul Lee <jo...@gmail.com>
To:	users@zeppelin.incubator.apache.org
Date:	03/28/2016 04:35 PM
Subject:	Re: How to configure the hive interpreter to use the embedded
            hive?



Hi Joshua,

There are two interpreter to use Hive. If you'd like to use it from
SparkSql, just copy your hive-site.xml in you conf directory. Otherwise,
you can set the Hiveserver2 url in your interpreter settings.

Hope this help.
J

On Tue, Mar 29, 2016 at 6:44 AM, Joshua W Hui <jh...@us.ibm.com> wrote:
  Hi,

  Just wonder how I can configure the hive interpreter to use the embedded
  hive which is part of the default zeppelin install image (0.5.5)
  Thanks,

  Joshua





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

Re: How to configure the hive interpreter to use the embedded hive?

Posted by Jongyoul Lee <jo...@gmail.com>.
Hi Joshua,

There are two interpreter to use Hive. If you'd like to use it from
SparkSql, just copy your hive-site.xml in you conf directory. Otherwise,
you can set the Hiveserver2 url in your interpreter settings.

Hope this help.
J

On Tue, Mar 29, 2016 at 6:44 AM, Joshua W Hui <jh...@us.ibm.com> wrote:

> Hi,
>
> Just wonder how I can configure the hive interpreter to use the embedded
> hive which is part of the default zeppelin install image (0.5.5)
> Thanks,
>
> Joshua
>



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

How to configure the hive interpreter to use the embedded hive?

Posted by Joshua W Hui <jh...@us.ibm.com>.
Hi,

Just wonder how I can configure the hive interpreter to use the embedded
hive which is part of the default zeppelin install image (0.5.5)
Thanks,

Joshua

Re: z.run works only once from onClick function on a button

Posted by Deepak Subhramanian <de...@gmail.com>.
I got the latest code today. The run paragraph works in chrome also.

On Mon, Mar 28, 2016 at 3:22 PM, Deepak Subhramanian
<de...@gmail.com> wrote:
> Just tried with Safari and the example works fine. I will update my
> code and see if it is working in Safari.
>
> On Mon, Mar 28, 2016 at 3:13 PM, Deepak Subhramanian
> <de...@gmail.com> wrote:
>> Is it merged to master?  I got the latest code in master and rebuild it .
>>
>> mvn clean package -DskipTests -Pspark-1.6 -Dspark.version=1.6.1
>>
>> Then try to run a new notebook with the example given. But it doesnt
>> seems to work . I tried in my Mac with Chrome and Firefox.
>>
>> Paragraph1
>> %angular
>>
>> <form class="form-inline">
>>   <div class="form-group">
>>     <label for="paragraphId">Paragraph Id: </label>
>>     <input type="text" class="form-control" id="paragraphId"
>> placeholder="Paragraph Id ..." ng-model="paragraph"></input>
>>   </div>
>>   <button type="submit" class="btn btn-primary"
>> ng-click="z.runParagraph(paragraph)"> Run Paragraph</button>
>> </form>
>>
>> Paragraph2
>> println("Date "+new java.util.Date().toString)
>>
>> On Sun, Mar 27, 2016 at 5:18 PM, DuyHai Doan <do...@gmail.com> wrote:
>>> Now that https://github.com/apache/incubator-zeppelin/pull/742 is merged,
>>> can you try with plain HTML code and call z.runParagraph(paragraphId) ?
>>>
>>> On Sun, Mar 27, 2016 at 5:27 PM, Deepak Subhramanian
>>> <de...@gmail.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I added a button to run a paragraph with new values from text-box.
>>>> For some reason the onClick function runs only once.  I am using the
>>>> master branch from github.
>>>>
>>>> val button = <div class="btn btn-success btn-sm">Update
>>>> Display</div>.onClick{() =>
>>>>    z.run("20160326-202433_889465080" )
>>>>    z.run("20160326-203128_1912408797")
>>>>
>>>> }
>>>>
>>>> Here is the notebook.
>>>>
>>>>
>>>> https://github.com/deepakas/zeppelin-gallery/tree/master/wikigraphvis/notebook
>>>>
>>>> Thanks, Deepak
>>>
>>>
>>
>>
>>
>> --
>> Deepak Subhramanian
>
>
>
> --
> Deepak Subhramanian



-- 
Deepak Subhramanian

Re: z.run works only once from onClick function on a button

Posted by Deepak Subhramanian <de...@gmail.com>.
Just tried with Safari and the example works fine. I will update my
code and see if it is working in Safari.

On Mon, Mar 28, 2016 at 3:13 PM, Deepak Subhramanian
<de...@gmail.com> wrote:
> Is it merged to master?  I got the latest code in master and rebuild it .
>
> mvn clean package -DskipTests -Pspark-1.6 -Dspark.version=1.6.1
>
> Then try to run a new notebook with the example given. But it doesnt
> seems to work . I tried in my Mac with Chrome and Firefox.
>
> Paragraph1
> %angular
>
> <form class="form-inline">
>   <div class="form-group">
>     <label for="paragraphId">Paragraph Id: </label>
>     <input type="text" class="form-control" id="paragraphId"
> placeholder="Paragraph Id ..." ng-model="paragraph"></input>
>   </div>
>   <button type="submit" class="btn btn-primary"
> ng-click="z.runParagraph(paragraph)"> Run Paragraph</button>
> </form>
>
> Paragraph2
> println("Date "+new java.util.Date().toString)
>
> On Sun, Mar 27, 2016 at 5:18 PM, DuyHai Doan <do...@gmail.com> wrote:
>> Now that https://github.com/apache/incubator-zeppelin/pull/742 is merged,
>> can you try with plain HTML code and call z.runParagraph(paragraphId) ?
>>
>> On Sun, Mar 27, 2016 at 5:27 PM, Deepak Subhramanian
>> <de...@gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I added a button to run a paragraph with new values from text-box.
>>> For some reason the onClick function runs only once.  I am using the
>>> master branch from github.
>>>
>>> val button = <div class="btn btn-success btn-sm">Update
>>> Display</div>.onClick{() =>
>>>    z.run("20160326-202433_889465080" )
>>>    z.run("20160326-203128_1912408797")
>>>
>>> }
>>>
>>> Here is the notebook.
>>>
>>>
>>> https://github.com/deepakas/zeppelin-gallery/tree/master/wikigraphvis/notebook
>>>
>>> Thanks, Deepak
>>
>>
>
>
>
> --
> Deepak Subhramanian



-- 
Deepak Subhramanian

Re: z.run works only once from onClick function on a button

Posted by Deepak Subhramanian <de...@gmail.com>.
Is it merged to master?  I got the latest code in master and rebuild it .

mvn clean package -DskipTests -Pspark-1.6 -Dspark.version=1.6.1

Then try to run a new notebook with the example given. But it doesnt
seems to work . I tried in my Mac with Chrome and Firefox.

Paragraph1
%angular

<form class="form-inline">
  <div class="form-group">
    <label for="paragraphId">Paragraph Id: </label>
    <input type="text" class="form-control" id="paragraphId"
placeholder="Paragraph Id ..." ng-model="paragraph"></input>
  </div>
  <button type="submit" class="btn btn-primary"
ng-click="z.runParagraph(paragraph)"> Run Paragraph</button>
</form>

Paragraph2
println("Date "+new java.util.Date().toString)

On Sun, Mar 27, 2016 at 5:18 PM, DuyHai Doan <do...@gmail.com> wrote:
> Now that https://github.com/apache/incubator-zeppelin/pull/742 is merged,
> can you try with plain HTML code and call z.runParagraph(paragraphId) ?
>
> On Sun, Mar 27, 2016 at 5:27 PM, Deepak Subhramanian
> <de...@gmail.com> wrote:
>>
>> Hi,
>>
>> I added a button to run a paragraph with new values from text-box.
>> For some reason the onClick function runs only once.  I am using the
>> master branch from github.
>>
>> val button = <div class="btn btn-success btn-sm">Update
>> Display</div>.onClick{() =>
>>    z.run("20160326-202433_889465080" )
>>    z.run("20160326-203128_1912408797")
>>
>> }
>>
>> Here is the notebook.
>>
>>
>> https://github.com/deepakas/zeppelin-gallery/tree/master/wikigraphvis/notebook
>>
>> Thanks, Deepak
>
>



-- 
Deepak Subhramanian

Re: z.run works only once from onClick function on a button

Posted by DuyHai Doan <do...@gmail.com>.
Now that https://github.com/apache/incubator-zeppelin/pull/742 is merged,
can you try with plain HTML code and call z.runParagraph(paragraphId) ?

On Sun, Mar 27, 2016 at 5:27 PM, Deepak Subhramanian <
deepak.subhramanian@gmail.com> wrote:

> Hi,
>
> I added a button to run a paragraph with new values from text-box.
> For some reason the onClick function runs only once.  I am using the
> master branch from github.
>
> val button = <div class="btn btn-success btn-sm">Update
> Display</div>.onClick{() =>
>    z.run("20160326-202433_889465080" )
>    z.run("20160326-203128_1912408797")
>
> }
>
> Here is the notebook.
>
>
> https://github.com/deepakas/zeppelin-gallery/tree/master/wikigraphvis/notebook
>
> Thanks, Deepak
>