- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I run the shell interpreter in Zeppelin as current user?
- Labels:
-
Apache Zeppelin
Created ‎11-04-2016 01:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Docs says:
"Shell interpreter uses Apache Commons Exec to execute external processes. In Zeppelin notebook, you can use %sh
in the beginning of a paragraph to invoke system shell and run commands. Note : Currently each command runs as the user Zeppelin server is running as."
Is there any way we can execute the shell interpreter as the current Zeppelin user? Like introducing a special shell for Apache Commons Exec, passing a $USER parameter etc?
/Best regards, Mats
Created ‎11-04-2016 06:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This needs 2 steps
- In the Zeppelin shell interpreter config, enable impersonation
- Ensure end user has an OS account on the node where Zeppelin is running.
Thanks
Created ‎11-07-2016 04:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @vshukla,
How do I enable impersonation for %sh?
I can't find it in the Zeppelin GUI or in the docs?
/Best regards, Mats
Created ‎11-26-2016 03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is in the interpreter setting page, make sure you are using zeppelin of HDP, community version of zeppelin doesn't have this feature.
