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

Reply via email to