Re: Zeppelin Port Configuration

2017-09-13 Thread Jeff Zhang
The log is clear, you don't have log4j under
/etc/zeppelin/conf/log4j.properties, so there will be no log file. Please
provide log4j for zeppelin. BTW which version of zeppelin do you use ?
Looks like you are not using apache zeppelin, but from some venders.

Carlos Andres Zambrano Barrera 于2017年9月14日周四 上午4:55写道:

> Ypu are right, I found the logs and the las thing i could see are, but  I
> suppose it is relation with  WARNING: A HTTP GET method, public
>
> ROOT LOGS
>
> Sep 13, 2017 5:26:58 PM 
> com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
> INFO: Initiating Jersey application, version 'Jersey: 1.13 06/29/2012 05:14 
> PM'
> Sep 13, 2017 5:26:59 PM com.sun.jersey.spi.inject.Errors processErrorMessages
> WARNING: The following warnings have been detected with resource and/or 
> provider classes:
>   WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
> org.apache.zeppelin.rest.InterpreterRestApi.listInterpreter(java.lang.String),
>  should not consume any entity.
>   WARNING: A sub-resource method, public javax.ws.rs.core.Response 
> org.apache.zeppelin.rest.NotebookRestApi.createNote(java.lang.String) throws 
> java.io.IOException, with UR$
>   WARNING: A sub-resource method, public javax.ws.rs.core.Response 
> org.apache.zeppelin.rest.NotebookRestApi.getNoteList() throws 
> java.io.IOException, with URI template, "/"$
>   WARNING: A HTTP GET method, public javax.ws.rs.core.Response 
> org.apache.zeppelin.rest.CredentialRestApi.getCredentials(java.lang.String) 
> throws java.io.IOException,java.l$
>
> ZEPPELIN
>
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> log4j:ERROR Could not read configuration file from URL 
> [file:/etc/zeppelin/conf/log4j.properties].
> java.io.FileNotFoundException: /etc/zeppelin/conf/log4j.properties (No such 
> file or directory)
> at java.io.FileInputStream.open0(Native Method)
> at java.io.FileInputStream.open(FileInputStream.java:195)
> at java.io.FileInputStream.(FileInputStream.java:138)
> at java.io.FileInputStream.(FileInputStream.java:93)
> at 
> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
> at 
> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
> at 
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557)
> at 
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
> at org.apache.log4j.LogManager.(LogManager.java:127)
> at 
> org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
> at 
> org.apache.zeppelin.server.ZeppelinServer.(ZeppelinServer.java:80)
> log4j:ERROR Ignoring configuration file 
> [file:/etc/zeppelin/conf/log4j.properties].
> log4j:WARN No appenders could be found for logger 
> (org.apache.zeppelin.conf.ZeppelinConfiguration).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
> info.
>
>
>
>
>  Sent with Mailtrack
> 
> <#m_1787354404591766216_>
>
> 2017-09-13 15:31 GMT-05:00 Jianfeng (Jeff) Zhang :
>
>>
>> That doesn’t work fine :)
>>
>> Please check the log for details.
>>
>>
>> Best Regard,
>> Jeff Zhang
>>
>>
>> From: Carlos Andres Zambrano Barrera 
>> Reply-To: "users@zeppelin.apache.org" 
>> Date: Thursday, September 14, 2017 at 3:50 AM
>> To: "users@zeppelin.apache.org" 
>> Subject: Re: Zeppelin Port Configuration
>>
>> I just change and it works fine!
>>
>> now when i tried to connect it shows websocket disconnected and i can not
>> see my notebooks
>>
>> I tried with different web-browser from different IP and without proxy,
>> but we can not open my notebooks.
>> .
>> [image: Imágenes integradas 1]
>>
>>
>>
>> Sent with Mailtrack
>> 
>> <#m_1787354404591766216_m_5069712642429769380_>
>>
>> 2017-09-13 14:45 GMT-05:00 Jianfeng (Jeff) Zhang 
>> :
>>
>>>
>>> What do you see in logs ?
>>>
>>>
>>> Best Regard,
>>> Jeff Zhang
>>>
>>>
>>> From: Carlos Andres Zambrano Barrera 
>>> Reply-To: "users@zeppelin.apache.org" 
>>> Date: Thursday, September 14, 2017 at 12:07 AM
>>> To: "users@zeppelin.apache.org" 
>>> Subject: Zeppelin Port Configuration
>>>
>>> Hi,
>>>
>>> I need to have zeppelin on port 80, and i change it in:
>>> zeppelin-site.xml
>>> 

Re: Zeppelin Port Configuration

2017-09-13 Thread Carlos Andres Zambrano Barrera
Ypu are right, I found the logs and the las thing i could see are, but  I
suppose it is relation with  WARNING: A HTTP GET method, public

ROOT LOGS

Sep 13, 2017 5:26:58 PM
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.13 06/29/2012 05:14 PM'
Sep 13, 2017 5:26:59 PM com.sun.jersey.spi.inject.Errors processErrorMessages
WARNING: The following warnings have been detected with resource
and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response
org.apache.zeppelin.rest.InterpreterRestApi.listInterpreter(java.lang.String),
should not consume any entity.
  WARNING: A sub-resource method, public javax.ws.rs.core.Response
org.apache.zeppelin.rest.NotebookRestApi.createNote(java.lang.String)
throws java.io.IOException, with UR$
  WARNING: A sub-resource method, public javax.ws.rs.core.Response
org.apache.zeppelin.rest.NotebookRestApi.getNoteList() throws
java.io.IOException, with URI template, "/"$
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response
org.apache.zeppelin.rest.CredentialRestApi.getCredentials(java.lang.String)
throws java.io.IOException,java.l$

ZEPPELIN

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
log4j:ERROR Could not read configuration file from URL
[file:/etc/zeppelin/conf/log4j.properties].
java.io.FileNotFoundException: /etc/zeppelin/conf/log4j.properties (No
such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557)
at 
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.(LogManager.java:127)
at 
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
at 
org.apache.zeppelin.server.ZeppelinServer.(ZeppelinServer.java:80)
log4j:ERROR Ignoring configuration file
[file:/etc/zeppelin/conf/log4j.properties].
log4j:WARN No appenders could be found for logger
(org.apache.zeppelin.conf.ZeppelinConfiguration).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.




 Sent with Mailtrack

<#>

2017-09-13 15:31 GMT-05:00 Jianfeng (Jeff) Zhang :

>
> That doesn’t work fine :)
>
> Please check the log for details.
>
>
> Best Regard,
> Jeff Zhang
>
>
> From: Carlos Andres Zambrano Barrera 
> Reply-To: "users@zeppelin.apache.org" 
> Date: Thursday, September 14, 2017 at 3:50 AM
> To: "users@zeppelin.apache.org" 
> Subject: Re: Zeppelin Port Configuration
>
> I just change and it works fine!
>
> now when i tried to connect it shows websocket disconnected and i can not
> see my notebooks
>
> I tried with different web-browser from different IP and without proxy,
> but we can not open my notebooks.
> .
> [image: Imágenes integradas 1]
>
>
>
> Sent with Mailtrack
> 
> <#m_5069712642429769380_>
>
> 2017-09-13 14:45 GMT-05:00 Jianfeng (Jeff) Zhang :
>
>>
>> What do you see in logs ?
>>
>>
>> Best Regard,
>> Jeff Zhang
>>
>>
>> From: Carlos Andres Zambrano Barrera 
>> Reply-To: "users@zeppelin.apache.org" 
>> Date: Thursday, September 14, 2017 at 12:07 AM
>> To: "users@zeppelin.apache.org" 
>> Subject: Zeppelin Port Configuration
>>
>> Hi,
>>
>> I need to have zeppelin on port 80, and i change it in:
>> zeppelin-site.xml
>> Andzeppelin-env.sh
>> I restart the services and it does not work the interpreter.
>>
>> Anyone could help me, please?
>> --
>> Ing. Carlos Andrés Zambrano Barrera
>> Cel: 3123825834 <312%203825834>
>>
>>
>>
>>
>>
>>
>> Sent with Mailtrack
>> 
>> <#m_5069712642429769380_m_5948761034312149288_>
>>
>
>
>
> --
> Ing. Carlos Andrés Zambrano Barrera
> Cel: 3123825834 <312%203825834>
>
>
>
>


-- 
Ing. Carlos Andrés Zambrano Barrera
Cel: 3123825834


Re: Zeppelin Port Configuration

2017-09-13 Thread Jianfeng (Jeff) Zhang

That doesn't work fine :)

Please check the log for details.


Best Regard,
Jeff Zhang


From: Carlos Andres Zambrano Barrera >
Reply-To: "users@zeppelin.apache.org" 
>
Date: Thursday, September 14, 2017 at 3:50 AM
To: "users@zeppelin.apache.org" 
>
Subject: Re: Zeppelin Port Configuration

I just change and it works fine!

now when i tried to connect it shows websocket disconnected and i can not see 
my notebooks

I tried with different web-browser from different IP and without proxy, but we 
can not open my notebooks.
.
[Imágenes integradas 1]



[https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png]Sent
 with 
Mailtrack

2017-09-13 14:45 GMT-05:00 Jianfeng (Jeff) Zhang 
>:

What do you see in logs ?


Best Regard,
Jeff Zhang


From: Carlos Andres Zambrano Barrera >
Reply-To: "users@zeppelin.apache.org" 
>
Date: Thursday, September 14, 2017 at 12:07 AM
To: "users@zeppelin.apache.org" 
>
Subject: Zeppelin Port Configuration

Hi,

I need to have zeppelin on port 80, and i change it in:
zeppelin-site.xml
Andzeppelin-env.sh
I restart the services and it does not work the interpreter.

Anyone could help me, please?
--
Ing. Carlos Andrés Zambrano Barrera
Cel: 3123825834






[https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png]Sent
 with 
Mailtrack



--
Ing. Carlos Andrés Zambrano Barrera
Cel: 3123825834





Re: Zeppelin Port Configuration

2017-09-13 Thread Carlos Andres Zambrano Barrera
I just change and it works fine!

now when i tried to connect it shows websocket disconnected and i can not
see my notebooks

I tried with different web-browser from different IP and without proxy, but
we can not open my notebooks.
.
[image: Imágenes integradas 1]



 Sent with Mailtrack

<#>

2017-09-13 14:45 GMT-05:00 Jianfeng (Jeff) Zhang :

>
> What do you see in logs ?
>
>
> Best Regard,
> Jeff Zhang
>
>
> From: Carlos Andres Zambrano Barrera 
> Reply-To: "users@zeppelin.apache.org" 
> Date: Thursday, September 14, 2017 at 12:07 AM
> To: "users@zeppelin.apache.org" 
> Subject: Zeppelin Port Configuration
>
> Hi,
>
> I need to have zeppelin on port 80, and i change it in:
> zeppelin-site.xml
> Andzeppelin-env.sh
> I restart the services and it does not work the interpreter.
>
> Anyone could help me, please?
> --
> Ing. Carlos Andrés Zambrano Barrera
> Cel: 3123825834 <312%203825834>
>
>
>
>
>
>
> Sent with Mailtrack
> 
> <#m_5948761034312149288_>
>



-- 
Ing. Carlos Andrés Zambrano Barrera
Cel: 3123825834


Re: Zeppelin Port Configuration

2017-09-13 Thread Jianfeng (Jeff) Zhang

What do you see in logs ?


Best Regard,
Jeff Zhang


From: Carlos Andres Zambrano Barrera >
Reply-To: "users@zeppelin.apache.org" 
>
Date: Thursday, September 14, 2017 at 12:07 AM
To: "users@zeppelin.apache.org" 
>
Subject: Zeppelin Port Configuration

Hi,

I need to have zeppelin on port 80, and i change it in:
zeppelin-site.xml
Andzeppelin-env.sh
I restart the services and it does not work the interpreter.

Anyone could help me, please?
--
Ing. Carlos Andrés Zambrano Barrera
Cel: 3123825834






[https://s3-eu-west-1.amazonaws.com/mailtrack-crx/icon-signature.png]Sent
 with 
Mailtrack


Zeppelin Port Configuration

2017-09-13 Thread Carlos Andres Zambrano Barrera
Hi,

I need to have zeppelin on port 80, and i change it in:
zeppelin-site.xml
Andzeppelin-env.sh
I restart the services and it does not work the interpreter.

Anyone could help me, please?
-- 
Ing. Carlos Andrés Zambrano Barrera
Cel: 3123825834






 Sent with Mailtrack

<#>


Zeppelin 0.7.2 with SSL enabled not working on new browsers

2017-09-13 Thread Kevin J Doyle
Hi,
We are encountering an issue on some of the newer browser versions with Zeppelin 0.7.2 that is SSL enabled.
Our Zeppelin notebook is configured with the following in zeppelin-env.sh:
ZEPPELIN_SSL=trueZEPPELIN_SSL_KEYSTORE_TYPE=PKCS12ZEPPELIN_SSL_KEYSTORE_PATH=ZEPPELIN_SSL_KEYSTORE_PASSWORD=
The notebook starts successfully and we can access the notebook UI using Firefox ESR 45.
However, using Firefox 52 or Chrome 60, we cannot access the notebook UI. The browser gives an error saying "Secure Connection Failed. The connection was interrupted while the page was loading".
In our certificate, we have both the cn and san. The same certificates are working for other web services, so we are not sure if it is a Zeppelin issue we are encountering. 
Wondering if you are aware of any issues like this?
Thanks,__Kevin J DoyleSenior Software Developer - IBM Spectrum Conductor with Spark3600 Steeles | E6-719Email: kjdo...@ca.ibm.com



Re: ZeppelinContext run method runs a paragraph as anonymous user

2017-09-13 Thread Luis Angel Vicente Sanchez
Hi Jeff,

I have created this issue
https://issues.apache.org/jira/browse/ZEPPELIN-2929. I was trying to
change the source of this problem and I reach to a similar conclusion
but I wasn't sure what the best way to propagate the user name would be.Regards,

Luis Angel Vicente Sanchez
zeppelin-us...@bigcente.ch



On Wed, 13 Sep 2017, at 08:38, Jianfeng (Jeff) Zhang wrote:
> 
> Could you create a ticket for it first ?  I suspect it is due to we
> didn’t pass user name in InterpreterContextRunner, but needs more
> investigation.> 
> 
> 
> 
> Best Regard,
> Jeff Zhang
> 
> 
> 
> *From: *Deenar Toraskar  *Reply-To:
> *"users@zeppelin.apache.org"  *Date:
> *Wednesday, September 13, 2017 at 3:04 PM *To:
> *"users@zeppelin.apache.org"  *Subject:
> *Re: ZeppelinContext run method runs a paragraph as anonymous user> 
> Hi 
> 
> I work with Luis. We have tried both options of triggering cells in
> the same notebook using z.run(paraIndex) as well as the paragraph id
> z.run("20170620-085926_474506193") .> 
> We are happy to patch Zeppelin. Would be grateful if you can point us
> to the right direction on how to propogate the credentials.> 
> Regards
> Deenar
> 
> On 12 September 2017 at 20:30, Luis Angel Vicente Sanchez  us...@bigcente.ch> wrote:>> __
>> I also tried with z.run(paragraphSeqNumber)
>> 
>> 
>> --
>>   Luis Angel Vicente Sanchez
>>zeppelin-us...@bigcente.ch
>> 
>> 
>> 
>> 
>> On Tue, 12 Sep 2017, at 09:22, Luis Angel Vicente Sanchez wrote:
>>> That's quite simple actually. Zeppelin exposes the ZeppelinContext
>>> as the variable z... you just need to do this:>>> 
>>> z.run(paragraphId)
>>> 
>>> --
>>>   Luis Angel Vicente Sanchez
>>>   zeppelin-us...@bigcente.ch
>>> 
>>> 
>>> 
>>> On Tue, 12 Sep 2017, at 03:33, Park Hoon wrote:
 Hi, could you share the paragraph to show how did you run a
 paragraph in a different paragraph? 
 > if we want to run a paragraph from another paragraph in the same
 > notebook (to refresh it), 
 Regard,
 
 On Mon, Sep 11, 2017 at 11:24 PM, Luis Angel Vicente Sanchez  >>> us...@bigcente.ch> wrote:> Some extra info:
> 
> println(s"AUTHENTICATION INFO ::
> ${z.getInterpreterContext.getAuthenticationInfo.getUser}
> ${z.getInterpreterContext.getAuthenticationInfo.getTicket}")
> 
> That line inside a Spark notebook prints both the user name
> and the> ticket that the user gets after a successful login... so the
> interpreter> knows who the user is. Can that info be used to run a 
> paragraph?
>
>
> --
>Luis Angel Vicente Sanchez zeppelin-us...@bigcente.ch> On Mon, 11 
> Sep 2017, at 12:16, Luis Angel Vicente Sanchez wrote:
> > And we are running the notebook using spark local, and using a
> > whirl> > JdbcRealm to authenticate users is there anything we can 
> > do to
> > make the> > spark interpreter impersonate the front-end user?
> >
> > --
> >   Luis Angel Vicente Sanchez
> >   zeppelin-us...@bigcente.ch
> >
> > On Mon, 11 Sep 2017, at 11:14, Luis Angel Vicente Sanchez wrote:> > 
> > > We are using Zeppelin 0.7.1/
> > >
> > >
> > > --
> > >   Luis Angel Vicente Sanchez
> > >   zeppelin-us...@bigcente.ch
> > >
> > > On Mon, 11 Sep 2017, at 11:12, Luis Angel Vicente Sanchez
> > > wrote:> > > > Hi,
> > > >
> > > > We have enabled notebook permissions in our Zeppelin
> > > > installation and> > > > now we are facing the problem that if 
> > > > we want to run a
> > > > paragraph from> > > > another paragraph in the same notebook 
> > > > (to refresh it), the
> > > > user that is> > > > running that paragraph is the anonymous 
> > > > user and not the front-
> > > > end user> > > > and, therefore, we get a "ForbiddenException" 
> > > > because of
> > > > that.> > > >
> > > > Is there a way to run a paragraph as the front-end user?
> > > >
> > > >
> > > > Kind regards,
> > > >
> > > > Luis Angel Vicente Sanchez
> > > > zeppelin-us...@bigcente.ch
>> 
> 
> 



Re: Weird problem with notebook permissions, can change them eve if I'm not owner

2017-09-13 Thread Raffaele S
Hello, if this is the case, can you please open a JIRA issue?

Raffaele

2017-09-08 18:18 GMT+02:00 Luis Angel Vicente Sanchez <
zeppelin-us...@bigcente.ch>:

> Ok... problem found, zeppelin.anonymous.enabled was not set to false. I
> would say that the message saying that it's ignoring the owner of a
> notebook because the anonymous access is enabled should be an INFO level
> message and not a DEBUG one.
> --
>   Luis Angel Vicente Sanchez
>   zeppelin-us...@bigcente.ch
>
> On Fri, 8 Sep 2017, at 16:00, Luis Angel Vicente Sanchez wrote:
> > I found that the "Cannot change permissions is always printed even if
> > you have the rights to change the permissions. But anyway, I can change
> > permissions even if I only have read access. Check the following log
> > messages:
> >
> >  INFO [2017-09-08 14:28:41,045] ({qtp1753447031-3709}
> >  NotebookRestApi.java[ownerPermissionError]:109) - Cannot change
> >  permissions. Connection owners [client2]. Allowed owners [client1]
> >  INFO [2017-09-08 14:28:41,045] ({qtp1753447031-3709}
> >  NotebookRestApi.java[putNotePermissions]:207) - Set permissions
> >  2CRXM67WA client2 [client1 ] [client2 ] [client1 ]
> >
> > client1 and client2 have different roles (one is analyst the other is
> > user) so... I shouldn't be allowed to change the permissions.
> >
> > This is on Zeppelin 0.7.1
> >
> > --
> >   Luis Angel Vicente Sanchez
> >   zeppelin-us...@bigcente.ch
> >
> > On Fri, 8 Sep 2017, at 14:57, Luis Angel Vicente Sanchez wrote:
> > > Hi,
> > >
> > > I found that I can change permission of notebooks even if I only have
> > > read access using the UI or sending calls to the REST API. I have
> tested
> > > this against Zeppelin 0.7.1
> > >
> > > If I check the logs I can see lots of line like these ones:
> > >
> > >  INFO [2017-09-08 13:52:33,140] ({qtp1753447031-2786}
> > >  NotebookRestApi.java[ownerPermissionError]:109) - Cannot change
> > >  permissions. Connection owners [admin]. Allowed owners [admin,
> analyst]
> > >  INFO [2017-09-08 13:52:33,140] ({qtp1753447031-2786}
> > >  NotebookRestApi.java[putNotePermissions]:207) - Set permissions
> > >  2CGGE4ETT admin [admin, analyst] [admin, analyst] [admin, analyst]
> > >
> > > I get those errors in the logs even if I'm the owner.
> > >
> > > Regards,
> > >
> > > Luis Angel Vicente Sanchez
> > > zeppelin-us...@bigcente.ch
>


Re: ZeppelinContext run method runs a paragraph as anonymous user

2017-09-13 Thread Jianfeng (Jeff) Zhang

Could you create a ticket for it first ?  I suspect it is due to we didn't pass 
user name in InterpreterContextRunner, but needs more investigation.




Best Regard,
Jeff Zhang


From: Deenar Toraskar 
>
Reply-To: "users@zeppelin.apache.org" 
>
Date: Wednesday, September 13, 2017 at 3:04 PM
To: "users@zeppelin.apache.org" 
>
Subject: Re: ZeppelinContext run method runs a paragraph as anonymous user

Hi

I work with Luis. We have tried both options of triggering cells in the same 
notebook using z.run(paraIndex) as well as the paragraph id 
z.run("20170620-085926_474506193") .

We are happy to patch Zeppelin. Would be grateful if you can point us to the 
right direction on how to propogate the credentials.

Regards
Deenar

On 12 September 2017 at 20:30, Luis Angel Vicente Sanchez 
> wrote:
I also tried with z.run(paragraphSeqNumber)

--
  Luis Angel Vicente Sanchez
  zeppelin-us...@bigcente.ch



On Tue, 12 Sep 2017, at 09:22, Luis Angel Vicente Sanchez wrote:
That's quite simple actually. Zeppelin exposes the ZeppelinContext as the 
variable z... you just need to do this:

z.run(paragraphId)

--
  Luis Angel Vicente Sanchez
  zeppelin-us...@bigcente.ch



On Tue, 12 Sep 2017, at 03:33, Park Hoon wrote:
Hi, could you share the paragraph to show how did you run a paragraph in a 
different paragraph?

> if we want to run a paragraph from another paragraph in the same notebook (to 
> refresh it),

Regard,

On Mon, Sep 11, 2017 at 11:24 PM, Luis Angel Vicente Sanchez 
> wrote:
Some extra info:

println(s"AUTHENTICATION INFO ::
${z.getInterpreterContext.getAuthenticationInfo.getUser}
${z.getInterpreterContext.getAuthenticationInfo.getTicket}")

That line inside a Spark notebook prints both the user name and the
ticket that the user gets after a successful login... so the interpreter
knows who the user is. Can that info be used to run a paragraph?


--
  Luis Angel Vicente Sanchez
  zeppelin-us...@bigcente.ch
On Mon, 11 Sep 2017, at 12:16, Luis Angel Vicente Sanchez wrote:
> And we are running the notebook using spark local, and using a whirl
> JdbcRealm to authenticate users is there anything we can do to make the
> spark interpreter impersonate the front-end user?
>
> --
>   Luis Angel Vicente Sanchez
>   zeppelin-us...@bigcente.ch
>
> On Mon, 11 Sep 2017, at 11:14, Luis Angel Vicente Sanchez wrote:
> > We are using Zeppelin 0.7.1/
> >
> >
> > --
> >   Luis Angel Vicente Sanchez
> >   zeppelin-us...@bigcente.ch
> >
> > On Mon, 11 Sep 2017, at 11:12, Luis Angel Vicente Sanchez wrote:
> > > Hi,
> > >
> > > We have enabled notebook permissions in our Zeppelin installation and
> > > now we are facing the problem that if we want to run a paragraph from
> > > another paragraph in the same notebook (to refresh it), the user that is
> > > running that paragraph is the anonymous user and not the front-end user
> > > and, therefore, we get a "ForbiddenException" because of that.
> > >
> > > Is there a way to run a paragraph as the front-end user?
> > >
> > >
> > > Kind regards,
> > >
> > > Luis Angel Vicente Sanchez
> > > zeppelin-us...@bigcente.ch




Re: ZeppelinContext run method runs a paragraph as anonymous user

2017-09-13 Thread Deenar Toraskar
Hi

I work with Luis. We have tried both options of triggering cells in the
same notebook using z.run(paraIndex) as well as the paragraph id
z.run("20170620-085926_474506193") .

We are happy to patch Zeppelin. Would be grateful if you can point us to
the right direction on how to propogate the credentials.

Regards
Deenar

On 12 September 2017 at 20:30, Luis Angel Vicente Sanchez <
zeppelin-us...@bigcente.ch> wrote:

> I also tried with z.run(paragraphSeqNumber)
>
> --
>   Luis Angel Vicente Sanchez
>   zeppelin-us...@bigcente.ch
>
>
>
> On Tue, 12 Sep 2017, at 09:22, Luis Angel Vicente Sanchez wrote:
>
> That's quite simple actually. Zeppelin exposes the ZeppelinContext as the
> variable z... you just need to do this:
>
> z.run(paragraphId)
>
> --
>   Luis Angel Vicente Sanchez
>   zeppelin-us...@bigcente.ch
>
>
>
> On Tue, 12 Sep 2017, at 03:33, Park Hoon wrote:
>
> Hi, could you share the paragraph to show how did you run a paragraph in a
> different paragraph?
>
> > if we want to run a paragraph from another paragraph in the same
> notebook (to refresh it),
>
> Regard,
>
> On Mon, Sep 11, 2017 at 11:24 PM, Luis Angel Vicente Sanchez <
> zeppelin-us...@bigcente.ch> wrote:
>
> Some extra info:
>
> println(s"AUTHENTICATION INFO ::
> ${z.getInterpreterContext.getAuthenticationInfo.getUser}
> ${z.getInterpreterContext.getAuthenticationInfo.getTicket}")
>
> That line inside a Spark notebook prints both the user name and the
> ticket that the user gets after a successful login... so the interpreter
> knows who the user is. Can that info be used to run a paragraph?
>
>
> --
>   Luis Angel Vicente Sanchez
>   zeppelin-us...@bigcente.ch
> On Mon, 11 Sep 2017, at 12:16, Luis Angel Vicente Sanchez wrote:
> > And we are running the notebook using spark local, and using a whirl
> > JdbcRealm to authenticate users is there anything we can do to make the
> > spark interpreter impersonate the front-end user?
> >
> > --
> >   Luis Angel Vicente Sanchez
> >   zeppelin-us...@bigcente.ch
> >
> > On Mon, 11 Sep 2017, at 11:14, Luis Angel Vicente Sanchez wrote:
> > > We are using Zeppelin 0.7.1/
> > >
> > >
> > > --
> > >   Luis Angel Vicente Sanchez
> > >   zeppelin-us...@bigcente.ch
> > >
> > > On Mon, 11 Sep 2017, at 11:12, Luis Angel Vicente Sanchez wrote:
> > > > Hi,
> > > >
> > > > We have enabled notebook permissions in our Zeppelin installation and
> > > > now we are facing the problem that if we want to run a paragraph from
> > > > another paragraph in the same notebook (to refresh it), the user
> that is
> > > > running that paragraph is the anonymous user and not the front-end
> user
> > > > and, therefore, we get a "ForbiddenException" because of that.
> > > >
> > > > Is there a way to run a paragraph as the front-end user?
> > > >
> > > >
> > > > Kind regards,
> > > >
> > > > Luis Angel Vicente Sanchez
> > > > zeppelin-us...@bigcente.ch
>
>
>