When launching the Dremio app in kubernetes environment, I get this error message:
mkdir: cannot create directory ‘/opt/dremio/log’: Permission denied
starting dremio
/opt/dremio/bin/dremio: line 126: /opt/dremio/log/server.out: No such file or directory
/opt/dremio/bin/dremio: line 127: /opt/dremio/log/server.out: No such file or directory
on startup, during the launch of kubernetes pod (visible in the stdout of the master/executor containers).
The Dremio daemon process is owned by ‘dremio’ user (from the output of the shell: ps -ef | grep Dremio
)
dremio@dremio-executor-0:/opt/dremio$ ps -ef | grep Dremio
dremio 1 0 58 13:55 ? 02:53:17 /usr/local/openjdk-8/bin/java -Djava.util.logging.config.class=org.slf4j.bridge.SLF4JBridgeHandler -Djava.library.path=/opt/dremio/lib -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Ddremio.plugins.path=/opt/dremio/plugins -Xmx4096m -XX:MaxDirectMemorySize=25856m -XX:+PrintClassHistogramAfterFullGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dremio/log -Dio.netty.maxDirectMemory=0 -Dio.netty.tryReflectionSetAccessible=true -DMAPR_IMPALA_RA_THROTTLE -DMAPR_MAX_RA_STREAMS=400 -XX:+UseG1GC -Dzookeeper=zk-hs:2181 -Dservices.coordinator.enabled=false -Dservices.coordinator.master.enabled=false -Dservices.coordinator.master.embedded-zookeeper.enabled=false -Dservices.executor.enabled=true -Dservices.conduit.port=45679 -Dservices.node-tag=default -cp /opt/dremio/conf:/opt/dremio/jars/*:/opt/dremio/jars/ext/*:/opt/dremio/jars/3rdparty/*:/usr/local/openjdk-8/lib/tools.jar com.dremio.dac.daemon.DremioDaemon
In dremio-env side, I configured the DREMIO_LOG_DIR to be at ${DREMIO_HOME}/log (as recommended) and tried also to be at /var/log/dremio but unfortunately, the permission denied error persists.
Any help would be appreciated.
Cheers