Our setup is that we reverse proxying Zeppelin behind nginx. We have a common 
install but each user has their own conf, logs, notebook, webapps and 
local-repo directory. Nginx fires up Zeppelin user-owned Zeppelin instances 
on-demand. The Zeppelin instance is started with the users home directory as 
current working directory to enable easy access to your own files and also the 
knitr figure directory.

The problem we run into is that the rzeppelin package can’t be found. The 
rinterpeter code assumes the R/lib directory is in the current working 
directory or the parent directory as can be seen from the stack trace below. 
I’ve patched this to look for R/lib directory in ZEPPELIN_HOME so that all 
users can share the code.

Is ZEPPELIN_HOME the best path to look for it or should the R/lib directory be 
moved into some other sub-directory under ZEPPELIN_HOME? If so I can update my 
patch and create a pull request. If not I’ll submit the patch as is.


Caused by: java.lang.RuntimeException: Could not find rzeppelin - it must be in 
either R/lib or ../R/lib
        at org.apache.zeppelin.rinterpreter.RContext$.apply(RContext.scala:297)
        at 
org.apache.zeppelin.rinterpreter.RInterpreter.rContext$lzycompute(RInterpreter.scala:44)
        at 
org.apache.zeppelin.rinterpreter.RInterpreter.rContext(RInterpreter.scala:44)




/Johan


Reply via email to