我正在尝试在Windows 10上设置Apache Zeppelin 0.8.1。
我主要是希望运行python解释器,以便稍后通过rest api对其进行调用,但是我很难让该解释器运行。
我已经将python添加到路径环境变量中,现在可以在cmd中调用它:
python
在Zeppelin的python解释器配置中,默认情况下zeppelin.python属性的值为python
,并且在文档中已说明,如果命令位于路径中,就足够了。
当我尝试使用诸如'%python print 1+1'
之类的简单命令来调用解释器时,会得到以下堆栈跟踪:
org.apache.thrift.TException: java.lang.reflect.InvocationTargetException
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.createInterpreter(RemoteInterpreterServer.java:320)
at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$createInterpreter.getResult(RemoteInterpreterService.java:1799)
at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$createInterpreter.getResult(RemoteInterpreterService.java:1784)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.createInterpreter(RemoteInterpreterServer.java:309)
... 8 more
Caused by: java.lang.RuntimeException: java.io.IOException: The system cannot find the path specified
at org.apache.zeppelin.python.PythonInterpreter.<init>(PythonInterpreter.java:105)
... 13 more
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at org.apache.zeppelin.python.PythonInterpreter.<init>(PythonInterpreter.java:102)
... 13 more
我尝试过的事情:
我还注意到Zeppelin日志文件夹始终为空,这似乎是异常的。
编辑:
我还没有解决本地主机上的问题,我已经将dockerized版本安装在开箱即用的版本中了,所以对像我这样的Zeppelin新手来说,从Docker开始就放弃了这个评论。
感谢您的帮助,谢谢!