Re: %sql problems

2016-11-06 Thread Igor Yakushin



On 11/05/2016 10:53 PM, Igor Yakushin wrote:


Hi All,

I have the following problems with %sql:

1)

%sql

show tables

correctly shows tables in hive databases.

2)

%sql

describe table mkbook.bkrating

correctly describes the schema for table bkrating in hive database mkbook

3)

%sql

select count(*) from mkbook.bkrating

does not work and gives the following errors:

org.apache.spark.sql.AnalysisException: Conf non-local session path 
expected to be non-null;

at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:260)
at 
org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:41)
at 
org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:40)

at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136)
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)

at scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)

at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890)
at 
scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110)
at 
org.apache.spark.sql.catalyst.AbstractSparkSQLParser.apply(AbstractSparkSQLParser.scala:38)

at org.apache.spark.sql.hive.HiveQl$$anonfun$3.apply(HiveQl.scala:139)
at org.apache.spark.sql.hive.HiveQl$$anonfun$3.apply(HiveQl.scala:139)
at 
org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:96)
at 
org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:95)

at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136)
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)

at scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)

at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890)
at 
scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110)
at 
org.apache.spark.sql.catalyst.AbstractSparkSQLParser.apply(AbstractSparkSQLParser.scala:38)

at org.apache.spark.sql.hive.HiveQl$.parseSql(HiveQl.scala:235)
at 
org.apache.spark.sql.hive.HiveContext$$anonfun$sql$1.apply(HiveContext.scala:92)
at 
org.apache.spark.sql.hive.HiveContext$$anonfun$sql$1.apply(HiveContext.scala:92)

at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.sql.hive.HiveContext.sql(HiveContext.scala:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.zeppelin.spark.SparkSqlInterpreter.interpret(SparkSqlInterpreter.java:117)
at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterSe

Re: %sql problems

2016-11-06 Thread Igor Yakushin



On 11/06/2016 05:30 PM, Igor Yakushin wrote:




On 11/05/2016 10:53 PM, Igor Yakushin wrote:


Hi All,

I have the following problems with %sql:

1)

%sql

show tables

correctly shows tables in hive databases.

2)

%sql

describe table mkbook.bkrating

correctly describes the schema for table bkrating in hive database mkbook

3)

%sql

select count(*) from mkbook.bkrating

does not work and gives the following errors:

org.apache.spark.sql.AnalysisException: Conf non-local session path 
expected to be non-null;

at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:260)
at 
org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:41)
at 
org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:40)

at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136)
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)

at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890)
at 
scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110)
at 
org.apache.spark.sql.catalyst.AbstractSparkSQLParser.apply(AbstractSparkSQLParser.scala:38)

at org.apache.spark.sql.hive.HiveQl$$anonfun$3.apply(HiveQl.scala:139)
at org.apache.spark.sql.hive.HiveQl$$anonfun$3.apply(HiveQl.scala:139)
at 
org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:96)
at 
org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:95)

at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136)
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
at 
scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)

at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)
at 
scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891)

at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890)
at 
scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110)
at 
org.apache.spark.sql.catalyst.AbstractSparkSQLParser.apply(AbstractSparkSQLParser.scala:38)

at org.apache.spark.sql.hive.HiveQl$.parseSql(HiveQl.scala:235)
at 
org.apache.spark.sql.hive.HiveContext$$anonfun$sql$1.apply(HiveContext.scala:92)
at 
org.apache.spark.sql.hive.HiveContext$$anonfun$sql$1.apply(HiveContext.scala:92)

at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.sql.hive.HiveContext.sql(HiveContext.scala:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.zeppelin.spark.SparkSqlInterpreter.interpret(SparkSqlInterpreter.java:117)
at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
at 
org.apache.zeppelin.interpreter.remote.RemoteInterpre

Re: under what userid should Zeppelin run?

2016-11-06 Thread moon soo Lee
Hi Igor,

Zeppelin runs with user id that execute bin/zeppelin-daemon.sh or
bin/zeppeiln.sh. And all interpreter processes are running with the same
user id at the moment. So you'll need to change your user id to appropriate
one for your job and start Zeppelin.

In case of you're interested in impersonation, community is working on it
and you can track related issues
https://issues.apache.org/jira/browse/ZEPPELIN-1320
https://issues.apache.org/jira/browse/ZEPPELIN-1587
https://issues.apache.org/jira/browse/ZEPPELIN-1567
Hope this helps.

Thanks,
moon


On Sat, Nov 5, 2016 at 8:30 PM Igor Yakushin  wrote:

> Hi All,
> Under what userid should Zeppelin run? The documentation does not seem
> to mention it.
> Thank you,
> Igor
>


Re: under what userid should Zeppelin run?

2016-11-06 Thread Igor Yakushin



On 11/06/2016 07:30 PM, moon soo Lee wrote:

Hi Igor,

Zeppelin runs with user id that execute bin/zeppelin-daemon.sh or 
bin/zeppeiln.sh. And all interpreter processes are running with the 
same user id at the moment. So you'll need to change your user id to 
appropriate one for your job and start Zeppelin.


Hi Moon,
So do I understand correctly that at the moment one cannot run a single 
Zeppelin server for all the users to connect to and each user is 
supposed to run his own instance of the server?
Zeppelin can use ldap for authentication so I thought that I can run it 
as root. But later I discovered that %sh would give root access to all 
the users!!!

Is there a way around it? Like running it under some service account?
With Jupyter, for example, there is JupyterHub that allows that: each 
user only has access to his account. Nothing like that for Zeppelin?

Thank you,
Igor

--
Igor Yakushin, Ph.D.
Computational Scientist
Kavli Institute for Cosmological Physics, ERC #413
Research Computing Center, room #2
The University of Chicago
773-834-5313
https://rcc.uchicago.edu



Re: under what userid should Zeppelin run?

2016-11-06 Thread moon soo Lee
Zeppelin already have three different modes for interpreter process
management.

 - shared : share a single process per note
 - scoped: share a single process but create instance inside per note
 - isolated : create a new process per note.

Now community also is actively working on bring this ability to not only
per note but also per user as well. Here's related issues. And i think
we'll have those features really soon.
https://issues.apache.org/jira/browse/ZEPPELIN-1210
https://issues.apache.org/jira/browse/ZEPPELIN-1236

Let me know if you have any other questions.

Thanks,
moon

On Sun, Nov 6, 2016 at 5:45 PM Igor Yakushin  wrote:

>
>
> On 11/06/2016 07:30 PM, moon soo Lee wrote:
> > Hi Igor,
> >
> > Zeppelin runs with user id that execute bin/zeppelin-daemon.sh or
> > bin/zeppeiln.sh. And all interpreter processes are running with the
> > same user id at the moment. So you'll need to change your user id to
> > appropriate one for your job and start Zeppelin.
>
> Hi Moon,
> So do I understand correctly that at the moment one cannot run a single
> Zeppelin server for all the users to connect to and each user is
> supposed to run his own instance of the server?
> Zeppelin can use ldap for authentication so I thought that I can run it
> as root. But later I discovered that %sh would give root access to all
> the users!!!
> Is there a way around it? Like running it under some service account?
> With Jupyter, for example, there is JupyterHub that allows that: each
> user only has access to his account. Nothing like that for Zeppelin?
> Thank you,
> Igor
>
> --
> Igor Yakushin, Ph.D.
> Computational Scientist
> Kavli Institute for Cosmological Physics, ERC #413
> Research Computing Center, room #2
> The University of Chicago
> 773-834-5313 <(773)%20834-5313>
> https://rcc.uchicago.edu
>
>


Re: under what userid should Zeppelin run?

2016-11-06 Thread Jeff Zhang
I think you are referring impersonation. It is still in progress.

Here's one related ticket

https://issues.apache.org/jira/browse/ZEPPELIN-1320




moon soo Lee 于2016年11月7日周一 上午10:48写道:

> Zeppelin already have three different modes for interpreter process
> management.
>
>  - shared : share a single process per note
>  - scoped: share a single process but create instance inside per note
>  - isolated : create a new process per note.
>
> Now community also is actively working on bring this ability to not only
> per note but also per user as well. Here's related issues. And i think
> we'll have those features really soon.
> https://issues.apache.org/jira/browse/ZEPPELIN-1210
> https://issues.apache.org/jira/browse/ZEPPELIN-1236
>
> Let me know if you have any other questions.
>
> Thanks,
> moon
>
> On Sun, Nov 6, 2016 at 5:45 PM Igor Yakushin  wrote:
>
>
>
> On 11/06/2016 07:30 PM, moon soo Lee wrote:
> > Hi Igor,
> >
> > Zeppelin runs with user id that execute bin/zeppelin-daemon.sh or
> > bin/zeppeiln.sh. And all interpreter processes are running with the
> > same user id at the moment. So you'll need to change your user id to
> > appropriate one for your job and start Zeppelin.
>
> Hi Moon,
> So do I understand correctly that at the moment one cannot run a single
> Zeppelin server for all the users to connect to and each user is
> supposed to run his own instance of the server?
> Zeppelin can use ldap for authentication so I thought that I can run it
> as root. But later I discovered that %sh would give root access to all
> the users!!!
> Is there a way around it? Like running it under some service account?
> With Jupyter, for example, there is JupyterHub that allows that: each
> user only has access to his account. Nothing like that for Zeppelin?
> Thank you,
> Igor
>
> --
> Igor Yakushin, Ph.D.
> Computational Scientist
> Kavli Institute for Cosmological Physics, ERC #413
> Research Computing Center, room #2
> The University of Chicago
> 773-834-5313 <(773)%20834-5313>
> https://rcc.uchicago.edu
>
>


Re: under what userid should Zeppelin run?

2016-11-06 Thread Igor Yakushin

Hi Moon,

This allows a user to specify who can see his note, right?

But that does not protect the system from users getting root access via 
%sh (or who knows what else) if Zeppelin is running as root?


Thank you,

Igor


On 11/06/2016 08:48 PM, moon soo Lee wrote:
Zeppelin already have three different modes for interpreter process 
management.


 - shared : share a single process per note
 - scoped: share a single process but create instance inside per note
 - isolated : create a new process per note.

Now community also is actively working on bring this ability to not 
only per note but also per user as well. Here's related issues. And i 
think we'll have those features really soon.

https://issues.apache.org/jira/browse/ZEPPELIN-1210
https://issues.apache.org/jira/browse/ZEPPELIN-1236

Let me know if you have any other questions.

Thanks,
moon

On Sun, Nov 6, 2016 at 5:45 PM Igor Yakushin > wrote:




On 11/06/2016 07:30 PM, moon soo Lee wrote:
> Hi Igor,
>
> Zeppelin runs with user id that execute bin/zeppelin-daemon.sh or
> bin/zeppeiln.sh. And all interpreter processes are running with the
> same user id at the moment. So you'll need to change your user id to
> appropriate one for your job and start Zeppelin.

Hi Moon,
So do I understand correctly that at the moment one cannot run a
single
Zeppelin server for all the users to connect to and each user is
supposed to run his own instance of the server?
Zeppelin can use ldap for authentication so I thought that I can
run it
as root. But later I discovered that %sh would give root access to all
the users!!!
Is there a way around it? Like running it under some service account?
With Jupyter, for example, there is JupyterHub that allows that: each
user only has access to his account. Nothing like that for Zeppelin?
Thank you,
Igor

--
Igor Yakushin, Ph.D.
Computational Scientist
Kavli Institute for Cosmological Physics, ERC #413
Research Computing Center, room #2
The University of Chicago
773-834-5313 
https://rcc.uchicago.edu



--
Igor Yakushin, Ph.D.
Computational Scientist
Kavli Institute for Cosmological Physics, ERC #413
Research Computing Center, room #2
The University of Chicago
773-834-5313
https://rcc.uchicago.edu



Re: under what userid should Zeppelin run?

2016-11-06 Thread moon soo Lee
Hi,

That's right. Until Zeppelin get impersonation implemented that i mentioned
in one of previous email.

Thanks Igor for sharing your interests.

Regards,
moon

On Sun, Nov 6, 2016 at 8:42 PM Igor Yakushin  wrote:

> Hi Moon,
>
> This allows a user to specify who can see his note, right?
>
> But that does not protect the system from users getting root access via
> %sh (or who knows what else) if Zeppelin is running as root?
>
> Thank you,
>
> Igor
>
> On 11/06/2016 08:48 PM, moon soo Lee wrote:
>
> Zeppelin already have three different modes for interpreter process
> management.
>
>  - shared : share a single process per note
>  - scoped: share a single process but create instance inside per note
>  - isolated : create a new process per note.
>
> Now community also is actively working on bring this ability to not only
> per note but also per user as well. Here's related issues. And i think
> we'll have those features really soon.
> https://issues.apache.org/jira/browse/ZEPPELIN-1210
> https://issues.apache.org/jira/browse/ZEPPELIN-1236
>
> Let me know if you have any other questions.
>
> Thanks,
> moon
>
> On Sun, Nov 6, 2016 at 5:45 PM Igor Yakushin  wrote:
>
>
>
> On 11/06/2016 07:30 PM, moon soo Lee wrote:
> > Hi Igor,
> >
> > Zeppelin runs with user id that execute bin/zeppelin-daemon.sh or
> > bin/zeppeiln.sh. And all interpreter processes are running with the
> > same user id at the moment. So you'll need to change your user id to
> > appropriate one for your job and start Zeppelin.
>
> Hi Moon,
> So do I understand correctly that at the moment one cannot run a single
> Zeppelin server for all the users to connect to and each user is
> supposed to run his own instance of the server?
> Zeppelin can use ldap for authentication so I thought that I can run it
> as root. But later I discovered that %sh would give root access to all
> the users!!!
> Is there a way around it? Like running it under some service account?
> With Jupyter, for example, there is JupyterHub that allows that: each
> user only has access to his account. Nothing like that for Zeppelin?
> Thank you,
> Igor
>
> --
> Igor Yakushin, Ph.D.
> Computational Scientist
> Kavli Institute for Cosmological Physics, ERC #413
> Research Computing Center, room #2
> The University of Chicago
> 773-834-5313 <%28773%29%20834-5313>
> https://rcc.uchicago.edu
>
>
> --
> Igor Yakushin, Ph.D.
> Computational Scientist
> Kavli Institute for Cosmological Physics, ERC #413
> Research Computing Center, room #2
> The University of Chicago773-834-5313 
> <(773)%20834-5313>https://rcc.uchicago.edu
>
>


Re: Graphics are not updated

2016-11-06 Thread Balachandar R.A.
Hi

Today I checked with my linux mozilla browser. No issue.However, my windows
firefox is still giving the same problem despite clearing the cache. I am
not convinced that this is an browser issue as you said, and that no issue
with the code or zeppelin.

Thanks

regards
Bala

On 5 November 2016 at 12:33, Balachandar R.A. 
wrote:

> Hi
>
> I will check and update.  Thanks
>
> Regards
>
> On 04-Nov-2016 11:41 pm, "Dipesh Vora" 
> wrote:
>
>> Hi,
>>
>> This can be an issue with browser cache. Kindly clear the browser cache
>> and try it once again.
>>
>>
>>
>> Thanks and regards,
>>
>> Dipesh Vora
>>
>>
>>
>> *From:* Balachandar R.A. [mailto:balachandar...@gmail.com]
>> *Sent:* Friday, November 04, 2016 10:22 PM
>> *To:* us...@zeppelin.incubator.apache.org
>> *Subject:* Graphics are not updated
>>
>>
>>
>> Hello
>>
>> I am building a dashboard using zeppelin 0.6.1 with spark 1.6.0. In this
>> dashboard i need to display about 20 zeppelin's inbuilt visualisation
>> widgets. All these 20 charts are the result of corresponding spark sql
>> queries. One query in one paragraph.
>> When i execute the queries(paragraphs), the graphics are not shown in the
>> output. However, the results are there in the table widget but when try to
>> see the results through other viz. widgets (bar, line..),  they are not
>> shown.  But When i refresh the browser,  the graphics are shown.
>> Can someone point to me under what circumstances this issue can occur?
>> I am using mozilla firefox md xhrome browsers,  and i see this issue in
>> both these browsers.
>>
>> Regards
>> Bala
>>
>> --
>>
>> The contents of this e-mail and any attachment(s) may contain
>> confidential or privileged information for the intended recipient(s).
>> Unintended recipients are prohibited from taking action on the basis of
>> information in this e-mail and using or disseminating the information, and
>> must notify the sender and delete it from their system. L&T Infotech will
>> not accept responsibility or liability for the accuracy or completeness of,
>> or the presence of any virus or disabling code in this e-mail"
>>
>


Re: Graphics are not updated

2016-11-06 Thread moon soo Lee
Hi Bala,

Thanks for sharing the problem.

Not sure but could you try newer version? zeppelin-0.6.2.
If it does not help, could you open developer console on your web browser
and see if there're any errors?

Thanks,
moon

On Sun, Nov 6, 2016 at 9:16 PM Balachandar R.A. 
wrote:

> Hi
>
> Today I checked with my linux mozilla browser. No issue.However, my
> windows firefox is still giving the same problem despite clearing the
> cache. I am not convinced that this is an browser issue as you said, and
> that no issue with the code or zeppelin.
>
> Thanks
>
> regards
> Bala
>
> On 5 November 2016 at 12:33, Balachandar R.A. 
> wrote:
>
> Hi
>
> I will check and update.  Thanks
>
> Regards
>
> On 04-Nov-2016 11:41 pm, "Dipesh Vora" 
> wrote:
>
> Hi,
>
> This can be an issue with browser cache. Kindly clear the browser cache
> and try it once again.
>
>
>
> Thanks and regards,
>
> Dipesh Vora
>
>
>
> *From:* Balachandar R.A. [mailto:balachandar...@gmail.com]
> *Sent:* Friday, November 04, 2016 10:22 PM
> *To:* us...@zeppelin.incubator.apache.org
> *Subject:* Graphics are not updated
>
>
>
> Hello
>
> I am building a dashboard using zeppelin 0.6.1 with spark 1.6.0. In this
> dashboard i need to display about 20 zeppelin's inbuilt visualisation
> widgets. All these 20 charts are the result of corresponding spark sql
> queries. One query in one paragraph.
> When i execute the queries(paragraphs), the graphics are not shown in the
> output. However, the results are there in the table widget but when try to
> see the results through other viz. widgets (bar, line..),  they are not
> shown.  But When i refresh the browser,  the graphics are shown.
> Can someone point to me under what circumstances this issue can occur?
> I am using mozilla firefox md xhrome browsers,  and i see this issue in
> both these browsers.
>
> Regards
> Bala
>
> --
>
> The contents of this e-mail and any attachment(s) may contain confidential
> or privileged information for the intended recipient(s). Unintended
> recipients are prohibited from taking action on the basis of information in
> this e-mail and using or disseminating the information, and must notify the
> sender and delete it from their system. L&T Infotech will not accept
> responsibility or liability for the accuracy or completeness of, or the
> presence of any virus or disabling code in this e-mail"
>
>
>


Re: under what userid should Zeppelin run?

2016-11-06 Thread Igor Yakushin
Upon reading the documentation and coming with JupyterHub experience, it 
was natural to assume that Zeppelin should run as root, one daemon for 
all the users, especially considering that one can use it with ldap.


One should put it into the documentation with big red letters: *NEVER 
RUN ZEPPELIN AS ROOT !!!

*

Also, the daemon itself should check if it is running as root and die 
with violent complaints if yes. This is a major security problem.


This was not obvious at all to me that each user should run his own 
daemon on his account. I know at least one more place that made the same 
mistake as me and runs Zeppelin under root.





Re: under what userid should Zeppelin run?

2016-11-06 Thread York Huang
Also if I want to run all Zeppelin instances from one Linux machine, do I have 
to create the Zeppelin binaries for each user with different ports so that 
multiple instances can run in the same box?

Sent from my iPhone

> On 7 Nov 2016, at 5:17 PM, Igor Yakushin  wrote:
> 
> Upon reading the documentation and coming with JupyterHub experience, it was 
> natural to assume that Zeppelin should run as root, one daemon for all the 
> users, especially considering that one can use it with ldap.
> One should put it into the documentation with big red letters: NEVER RUN 
> ZEPPELIN AS ROOT !!! 
> 
> Also, the daemon itself should check if it is running as root and die with 
> violent complaints if yes. This is a major security problem.
> 
> This was not obvious at all to me that each user should run his own daemon on 
> his account. I know at least one more place that made the same mistake as me 
> and runs Zeppelin under root.
> 
> 


405 method not allowed

2016-11-06 Thread Vikash Kumar
Hi all,
I am trying to convert the zeppelin-web application from Angular to Aurelia. 
When I am executing the following code  to get the interpreter binding I am 
getting error 405 method not allowed. Same error again in postman. I am able to 
hit the login api.

let url = BaseUrl.getRestApiBase() + '/notebook/interpreter/bind/' + 
this.note.id;
this.http.fetch(url, {
method: 'GET',
 headers: {
  'Content-Type': 'application/x-www-form-urlencoded'
}
  })
  .then(response => response.json())
  .then(data => {
console.log('Data === ', data);  //Empty
if((data || {}).status === 'OK') {
  this.interpreterBindings = data.body;
} else {
   console.log('Error %o %o', (data || {}).status, (data || 
{}).message);
}
  });

Thanks & Regards,
Vikash Kumar