Re: How do I give ReadOnly access to anonymous user?

2017-10-26 Thread Michael Segel
I’m still a novice when it comes to Zeppelin, but if it were me…

I would expose a separate instance of Zeppelin for external access. Different 
from the zeppelin service used internally.
I would also use nginx in front as a proxy to offer SSL connections.

Then on that version… you could authenticate via nginx or in shiro.  If you 
want to use an anonymous access, I think you could set up a role for readOnly… 
but I’m not sure if what you want is possible or how you would do that. It 
sounds reasonable and should be doable.

But I have to ask if using Zeppelin as a dashboard is the best option?
Since its read only… wouldn’t you be better off with a dashboard using 
javascript?  (Isn’t there a scala/java script package out there? )

Also, I don’t know if I would want to run anonymous … I’m just paranoid and you 
lose some potential data on your ‘customers’ too.

On Oct 26, 2017, at 11:58 AM, shyla deshpande 
> wrote:

Hi Michael ,
Thanks for the response. I am using Shiro for users within our organization.
 I was seeing if there is a way to share the link with the customers who are 
not a part of our organization.
-Shyla

On Thu, Oct 26, 2017 at 8:53 AM, Michael Segel 
> wrote:
Do you really want the user to be anonymous?
What about using Shiro to set up a role?


> On Oct 26, 2017, at 10:48 AM, shyla deshpande 
> > wrote:
>
> I am running Zeppelin on EMR cluster.
> I want to share a Dashboard just for viewing with the customers .
> What is the best way to do that?
>
> Thanks
> -shyla





Re: How do I give ReadOnly access to anonymous user?

2017-10-26 Thread shyla deshpande
Hi Michael ,
Thanks for the response. I am using Shiro for users within our organization.
 I was seeing if there is a way to share the link with the customers who
are not a part of our organization.
-Shyla

On Thu, Oct 26, 2017 at 8:53 AM, Michael Segel 
wrote:

> Do you really want the user to be anonymous?
> What about using Shiro to set up a role?
>
>
> > On Oct 26, 2017, at 10:48 AM, shyla deshpande 
> wrote:
> >
> > I am running Zeppelin on EMR cluster.
> > I want to share a Dashboard just for viewing with the customers .
> > What is the best way to do that?
> >
> > Thanks
> > -shyla
>
>


How do I give ReadOnly access to anonymous user?

2017-10-26 Thread shyla deshpande
I am running Zeppelin on EMR cluster.
I want to share a Dashboard just for viewing with the customers .
What is the best way to do that?

Thanks
-shyla


Re: Read Hbase table in pyspark gives java.lang.ClassNotFoundException: org.apache.phoenix.jdbc.PhoenixDriver

2017-10-26 Thread Jongyoul Lee
Hi,

you can locate them under ${ZEPPELIN_HOME}/interpreter/spark/

The other option is to set dependencies in interpreter tab of spark
interpreter. See here:
http://zeppelin.apache.org/docs/0.7.3/manual/dependencymanagement.html

I'm not sure if sc.something works or not.

Regards,
JL

On Thu, Oct 26, 2017 at 3:43 PM, Indtiny S  wrote:

> Hi,
>
> I have those libraries but where to place those libraries so that zeppelin
> can pick up.
>
> or is there any way to set the library path using sparkcontext i.e using
> sc?
>
>
> Regards
> In
>
> On Wed, Oct 25, 2017 at 9:22 PM, Jongyoul Lee  wrote:
>
> > Hi,
> >
> > I'm not sure but you can try to locate them under interpreter/spark if
> you
> > can do it
> >
> > JL
> >
> > On Wed, Oct 25, 2017 at 3:05 PM, Indtiny S  wrote:
> >
> > > Hi,
> > > I am trying to read Hbase tables in pyspark data frame,
> > > I am using the below code
> > > but I am getting the ClassNotFoundException error
> > >
> > >  df=sqlContext.read.format('jdbc').options(driver="org.
> > > apache.phoenix.jdbc.PhoenixDriver",url='jdbc:
> > > phoenix:localhost:2181:/hbase-unsecure',dbtable='table_name').load()
> > >
> > >
> > > java.lang.ClassNotFoundException: org.apache.phoenix.jdbc.
> PhoenixDriver
> > >
> > >
> > > I have the libraries phoenix-spark-4.7.0-HBase-1.1.jar and
> > > phoenix-4.7.0-HBase-1.1-client.jar but dont know where to place them .
> > >
> > >
> > > I am using zeppelin 0.7.0
> > >
> > >
> > > Rgds
> > >
> > > In
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > 이종열, Jongyoul Lee, 李宗烈
> > http://madeng.net
> >
>



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


Re: Read Hbase table in pyspark gives java.lang.ClassNotFoundException: org.apache.phoenix.jdbc.PhoenixDriver

2017-10-26 Thread Indtiny S
Hi,

I have those libraries but where to place those libraries so that zeppelin
can pick up.

or is there any way to set the library path using sparkcontext i.e using sc?


Regards
In

On Wed, Oct 25, 2017 at 9:22 PM, Jongyoul Lee  wrote:

> Hi,
>
> I'm not sure but you can try to locate them under interpreter/spark if you
> can do it
>
> JL
>
> On Wed, Oct 25, 2017 at 3:05 PM, Indtiny S  wrote:
>
> > Hi,
> > I am trying to read Hbase tables in pyspark data frame,
> > I am using the below code
> > but I am getting the ClassNotFoundException error
> >
> >  df=sqlContext.read.format('jdbc').options(driver="org.
> > apache.phoenix.jdbc.PhoenixDriver",url='jdbc:
> > phoenix:localhost:2181:/hbase-unsecure',dbtable='table_name').load()
> >
> >
> > java.lang.ClassNotFoundException: org.apache.phoenix.jdbc.PhoenixDriver
> >
> >
> > I have the libraries phoenix-spark-4.7.0-HBase-1.1.jar and
> > phoenix-4.7.0-HBase-1.1-client.jar but dont know where to place them .
> >
> >
> > I am using zeppelin 0.7.0
> >
> >
> > Rgds
> >
> > In
> >
> >
> >
> >
> >
> >
>
>
> --
> 이종열, Jongyoul Lee, 李宗烈
> http://madeng.net
>