Interpreter menu stop working when Active Directory integration enabled

2017-07-25 Thread Richard Xin
It looks like a bug to me.
[ZEPPELIN-2810] Interpreter menu stop working when Active Directory integration 
enabled - ASF JIRA


| 
| 
|  | 
[ZEPPELIN-2810] Interpreter menu stop working when Active Directory inte...


 |

 |

 |





Re: z.load() Must be used before SparkInterpreter (%spark) initialized?

2017-07-25 Thread Jeff Zhang
It is not restarting zeppelin, you just need to restart spark interpreter.


Richard Xin 于2017年7月26日周三 上午12:53写道:

> I used %dep
> z.load("path/to/jar")
> I got following error:
> Must be used before SparkInterpreter (%spark) initialized
> Hint: put this paragraph before any Spark code and restart
> Zeppelin/Interpreter
>
> restart zeppelin did make it work, it seems to be an expected behavior,
> but I don't understand thee reason behind it. If every time I have to
> restart zeppelin before I could dynamically add an external jar, then this
> feature is useless to most people.
>
> Richard Xin
>


Re: How to find out zeppelin's version number from within a notebook?

2017-07-25 Thread Park Hoon
Great! I think we can send a get request in a paragraph.


Regard,



On Tue, Jul 25, 2017 at 8:22 PM, Partridge, Lucas (GE Aviation) <
lucas.partri...@ge.com> wrote:

> That worked thanks!  Although I had to use a different host and port
> because it’s hosted remotely. But I got this back in the browser:
>
>
>
> {"status":"OK","message":"Zeppelin version","body":"0.7.0.2.6.0.11-1"}
>
>
>
> Ideally it would be nice to have a variable like zeppelin.version
> accessible from Python or Scala though too.
>
>
>
> *From:* Park Hoon [mailto:1am...@gmail.com]
> *Sent:* 25 July 2017 12:11
> *To:* users@zeppelin.apache.org
> *Subject:* EXT: Re: How to find out zeppelin's version number from within
> a notebook?
>
>
>
> Hi,
>
> Could you test `http://localhost:8080/api/version`?
>
> You will get this kind of response. `version` is what you are looking for
>
> [image: cid:ii_j5jhbxyd0_15d79706fc8ac4ea]
> If you are working with JS code, you can get version in this way
>
>   $scope.getInterpreterBindingModeDocsLink = function() {
>
> const currentVersion = $rootScope.zeppelinVersion
>
>
> https://github.com/apache/zeppelin/blob/master/zeppelin-
> web/src/app/interpreter/interpreter.controller.js#L777-L778
>
>
> Regard,
>
>
> ​
>
>
>
> On Tue, Jul 25, 2017 at 5:50 PM, Partridge, Lucas (GE Aviation) <
> lucas.partri...@ge.com> wrote:
>
> Unfortunately the version number is missing from the ‘About Zeppelin’
> dialog box and I have no access to the file system. So is there something
> like ‘zeppelin.version’ we can type within a notebook’s paragraph to find
> out what version we’re running please?
>
>
>


How to find out zeppelin's version number from within a notebook?

2017-07-25 Thread Partridge, Lucas (GE Aviation)
That worked thanks!  Although I had to use a different host and port because 
it’s hosted remotely. But I got this back in the browser:

{"status":"OK","message":"Zeppelin version","body":"0.7.0.2.6.0.11-1"}

Ideally it would be nice to have a variable like zeppelin.version accessible 
from Python or Scala though too.

From: Park Hoon [mailto:1am...@gmail.com]
Sent: 25 July 2017 12:11
To: users@zeppelin.apache.org
Subject: EXT: Re: How to find out zeppelin's version number from within a 
notebook?

Hi,

Could you test 
`http://localhost:8080/api/version`?

You will get this kind of response. `version` is what you are looking for

[cid:ii_j5jhbxyd0_15d79706fc8ac4ea]
If you are working with JS code, you can get version in this way
  $scope.getInterpreterBindingModeDocsLink = function() {
const currentVersion = $rootScope.zeppelinVersion

https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/interpreter/interpreter.controller.js#L777-L778


Regard,

​


On Tue, Jul 25, 2017 at 5:50 PM, Partridge, Lucas (GE Aviation) 
> wrote:
Unfortunately the version number is missing from the ‘About Zeppelin’ dialog 
box and I have no access to the file system. So is there something like 
‘zeppelin.version’ we can type within a notebook’s paragraph to find out what 
version we’re running please?



"Reload notes from storage" button overwrites recent edits

2017-07-25 Thread Partridge, Lucas (GE Aviation)
When a user clicks on this button on the Zeppelin homepage:
[Screen Clipping]
...which notebooks are reloaded from storage: all the notebooks, or only the 
notebooks that belong to the user who clicked the refresh button?

Unfortunately in our setup, where all the notebooks are backed up on S3, it 
appears to be all the notebooks. This means that if any user on the multi-user 
system hits that button, then any notebook edits made since the last backup to 
S3 made by any user will be overwritten by the old copies.  This is immensely 
frustrating for the users who lose their edits! So, is this a known issue in 
Zeppelin; or is there a recommended way of syncing with S3 so that only the 
notebooks of the user who hits that button get refreshed?

BTW when the sync with S3 or wherever occurs, aren't the timestamps of the 
individual files compared first to determine which ways the files should be 
copied? If the S3 copy is newer then the local notebook should be overwritten 
(assuming times are in sync between the zeppelin host and S3). If the local 
copy is newer than that should be used to overwrite the copy in S3.  If this 
process were followed then it wouldn't matter if everyone's notebooks were 
updated when someone hits that button. This assumes Zeppelin can tell if 
someone is actively editing a paragraph that hasn't even been executed yet 
though.


Re: Shiro AD auth - unable to use jceks

2017-07-25 Thread cs user
Bump

Has anyone managed to get this working?

On Thu, Jul 20, 2017 at 11:37 AM, cs user  wrote:

> Hello,
>
> Can someone explain how the shiro.ini config should look when trying to
> encrypt the AD password?
>
> We have the following config:
>
> activeDirectoryRealm = org.apache.zeppelin.realm.ActiveDirectoryGroupRealm
>> activeDirectoryRealm.url = ldaps://some.address.com:636
>> activeDirectoryRealm.searchBase = DC=top,DC=domain,DC=sub,DC=com
>> activeDirectoryRealm.groupRolesMap = "CN=GROUP,OU=some,OU=location,
>> OU=folder,DC=top,DC=domain,DC=sub,DC=com”:”someuser”
>> activeDirectoryRealm.systemUsername = some.account
>>
> # Password commented out
>
> #activeDirectoryRealm.systemPassword = passwordnotused
>> activeDirectoryRealm.hadoopSecurityCredentialPath =
>> "jceks://file/tmp/zeppelin/conf/zeppelin.jceks"
>> activeDirectoryRealm.principalSuffix=@some.sub.com
>> activeDirectoryRealm.authorizationCachingEnabled = false
>
>
> However it doesn't appear to be using the credential which is stored in
> the jceks file.
>
> The file was created using the following command:
>
> hadoop credential create activeDirectoryRealm.systemPassword -provider
>> jceks://file/tmp/zeppelin/conf/zeppelin.jceks
>
>
> The file is owned by zeppelin.
>
> I've tried created the credential with both  "systemPassword" and
> "systempassword" as the name.
>
> Everything works fine if I just use the plain text password. I'm using
> Zeppelin version 0.7.0.
>
> What am I missing here? Does anyone have an example config which is
> working for them? I've check the logs and there are no errors relating to
> loading the above jceks file.
>
> Thanks!
>