I will try this, but can't at this time.
I did some additional experimentation and found that if I run the
service as root:root, there are not issues with the core R plotting
functions. My issues only occur when the service is using user:
zeppelin group: zeppelin. This s a permissions problem. I just don't
know how to fix it.
Do you think version 0.8 will has this fixed? my zeppelin.service is
listed below and is based on a user group posing and me copying then
modifying the httpd.service files.
Thanks
Joe
# See httpd.service(8) for more information on using the httpd service.
# Modifying this file in-place is not recommended, because changes
# will be overwritten during package upgrades. If you want to
# customize the behaviour, the best way is to use "systemctl edit"
# command to create an override unit.
# For example, to pass additional options (such as -D definitions) to
# the httpd binary at startup, create an override unit (as is done by
# systemctl edit) and enter the following:
# [Service]
# Environment=OPTIONS=-DMY_DEFINE
[Unit]
Description=The Zeppelin Notebook Server
After=network.target remote-fs.target nss-lookup.target
Documentation=http://zeppelin.apache.org/docs/0.7.3
[Service]
User=root #zeppelin user does not or
Group=root #zeppelin group does not work.
Type=forking
Environment=LANG=C
WorkingDirectory=/opt/zeppelin
ExecStart=/opt/zeppelin/bin/zeppelin-daemon.sh start
ExecReload=/opt/zeppelin/bin/zeppelin-daemon.sh restart
ExecStop=/opt/zeppelin/bin/zepplin-daemon.sh stop
# Send SIGWINCH for graceful stop
#KillSignal=SIGWINCH
#KillMode=mixed
#PrivateTmp=true
[Install]
WantedBy=multi-user.target
On 04/18/2018 08:12 PM, Jianfeng (Jeff) Zhang wrote:
Do you mind to try zeppelin 0.8 branch ? You need to build it from source
Best Regard,
Jeff Zhang
From: "Joe W. Byers" <ecjb...@aol.com <mailto:ecjb...@aol.com>>
Reply-To: "users@zeppelin.apache.org
<mailto:users@zeppelin.apache.org>" <users@zeppelin.apache.org
<mailto:users@zeppelin.apache.org>>
Date: Wednesday, April 18, 2018 at 9:49 PM
To: "users@zeppelin.apache.org <mailto:users@zeppelin.apache.org>"
<users@zeppelin.apache.org <mailto:users@zeppelin.apache.org>>
Subject: Re: Spark Error replayPlot(x): could not open file
On 2018/04/18 11:16:40, "Joe W. Byers" <e...@aol.com> wrote:
> All,>
>
> I am getting this error on all R plots in all the tutorial examples >
> using Zeppelin 0.7.3, and in simple example %r scripts.>
>
> Error in replayPlot(x): could not open file
'figure/unnamed-chunk-1-1.png'>
>
> I think this is something to do with file permissions on temporary >
> files/directories. There is one or two posts I found searching that
are >
> under Rstudio that offer a system call, but it does not work with >
> Zeppelin/Spark.>
> Sys.umask(mode="0000") is place at the beginning of script.>
>
> This is what I have tried.>
> %r>
> Sys.umask(mode="0000")>
> a = rnorm(1000)>
> plot(a)>
>
> Thanks>
> Joe>
>
> -- >
> *Joe W. Byers*>
>
A follow up.
I am running zeppelin as a service on a Fedora 25 server controlled by
systemd (systemctl ...). I create a user and group, zeppelin, with
/sbin/nologin and home /dir1/zeppelin. I set up shiro.ini for my ldap
authetication. This issue did not occur when I was testing, starting
server with command line script or daemon as root user, and logging in
as anonymous on the zeppelin url.
Googleviz charts do work, only R specific plot, ggplot2, have this issue.
Thanks
Joe
--
*Joe W. Byers*
--
*Joe W. Byers*