I got the following setup:
- Zeppelin Notebok Version 0.8.1 (Its a special distribution from Denodo (https://community.denodo.com/docs/html/document/denodoconnects/8.0/en/Apache%20Zeppelin%20for%20Denodo%20-%20User%20Manual) but they just added a new interpreter and a new notebook storage)
- Anaconda 2019.10 (This needs to be an Anaconda Version which defaults to Python 3.7 so 2020.02 would also be ok but the installer seems to be broken, see: Anaconda Installation stuck at - 'Setting up the package cache' and no fix worked for me. Therefore the good old 2019.10 is the one to got with right now)
- Java: ADOPTOpenJDK jdk-8.0.292.10-hotspot
- running on Windows Server 2019
As far as I know all needed ENV-Variables are set correctly. Anaconda + Python is working correctly on the machine itself. When I open a Zeppelin Notebook with the Python interpreter and don´t activate any environment - basically working in "base" all the time - everything runs fine. When I start to use Anaconda how it´s meant and switch environment with
%python.conda activate base
in the Notebook Python Kernel dies and I only the the Message
python process not runningorg.apache.zeppelin.interpreter.util.InterpreterOutputStream@b785379
from each cell I try to execute. The activation of the env itself seems to work correctly because I get the following output from it:
'base' is activated
This even happens if I try to activate base itself, like seen above, and also for every other env.
The "zeppelin.python" value in the interpreter setting is set to "python". The Anaconda Root is set in my Path variables and recognized as my default python on this machine.
After this, the kernel can´t be restarted, I can´t change any config an the only solution is to restart the whole zeppelin deployment on the machine.
The interpreter log shows the follwing exception:
ERROR [2021-07-01 17:28:02,479] ({Exec Default Executor} PythonInterpreter.java[onProcessFailed]:601) - python process failed org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "C:\Anaconda3\bin\python" (in directory "."): CreateProcess error=2, The system cannot find the file specified) at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:205) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Cannot run program "C:\Anaconda3\bin\python" (in directory "."): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at java.lang.Runtime.exec(Runtime.java:621) at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61) at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336) at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48) at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200) ... 1 more Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(ProcessImpl.java:453) at java.lang.ProcessImpl.start(ProcessImpl.java:139) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 7 more
The weird part is, that it tries to locate python under C:\Anaconda3\bin\python which might be correct for anaconda on linux but the Windows Anaconda Version does not have a bin folder, the python.exe just resided in the root directory and I never specified this (ENV-Variable PATH hold "C:\Anaconda3"). This might be what causes the error.
Does anyone know how to fix this or tell zeppelin that it should not append \bin to find the correct python version? Right know, the Python interpreter is not usable for a multi user environment if the users can´t create their own anaconda environments.
Thanks in advance!