簡體   English   中英

為什么我的任何筆記本在Zeppelin 0.8.0上都無法使用python解釋器?

[英]Why is python interpreter not working on Zeppelin 0.8.0 for any of my notebooks?

我只是在輸入:

%python

print ("hi") 

但是每次我在任何筆記本上運行它時,它始終顯示以下錯誤:

java.lang.OutOfMemoryError:Java堆空間位於org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:230)處的org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:379)處。 org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService $ Client.recv_createInterpreter(RemoteInterpreterService.java:209)上的apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)在org.apache.zeppelin.interpreter.thrift。$ RemoteInterpreter位於org.apache.zeppelin.interpreter.remote.RemoteInterpreter $ 2.call(RemoteInterpreter.java:169)的Client.createInterpreter(RemoteInterpreterService.java:192)位於org.apache.zeppelin.interpreter.remote.RemoteInterpreter $ 2.call(RemoteInterpreter。 java:165)位於org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess.callRemoteFunction(RemoteInterpreterProcess.java:135)位於org.apache.zeppelin.interpreter.remote.RemoteInterpreter.internal_create(RemoteInterpreter.java:165) .zeppelin。解釋器 org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:299)上的.remote.RemoteInterpreter.open(RemoteInterpreter.java:132)在org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java :407),位於org.apache.zeppelin.scheduler.RemoteScheduler $ JobRunner.run(RemoteScheduler.java:307),位於org.apache.zeppelin.scheduler.RemoteScheduler $ JobRunner.run(RemoteScheduler.java:307),位於java.util.concurrent。 Executors $ RunnableAdapter.call(未知源),java.util.concurrent.FutureTask.run(未知源),java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(未知源),java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask .run(未知源)處java.util.concurrent.ThreadPoolExecutor.runWorker(未知源)處java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知源)處java.lang.Thread.run(未知源)

我試圖在齊柏林飛艇上的筆記本上使用python。 我將Java和python路徑都添加到了我的環境變量中,並且我也安裝了庫py4j。 另外,我已經將我正在使用的本地主機添加到Zeppelin-site.xml文件中。 我還在Stack Overflow上的類似問題上找到了此鏈接,並嘗試了其中的所有內容以更改Java空間的大小,但仍然無法正常工作。 http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/Can-not-configure-driver-memory-size-td1513.html

任何幫助都將不勝感激!

通過使用全新的Zeppelin下載,我能夠克服上述錯誤。 但是,在嘗試使用python解釋器時,我確實遇到了另一個問題: Apache Zeppelin 8.1 Win10 Python解釋器錯誤

用於啟動Zeppelin的cmd窗口中的堆棧跟蹤顯示了以下錯誤: Apache Zeppelin 8.1 Win10 Python Interpreter Error堆棧跟蹤

基本上通過引用代碼,我能夠看到python解釋器正在嘗試創建一個臨時文件並將其放入名為tmp的文件夾中: https : //github.com/apache/zeppelin/blob/branch-0.8/python/src/ main / java / org / apache / zeppelin / python / PythonInterpreter.java ,第102行

從這一點上,我不確定它在哪里嘗試使用名為tmp的文件夾。 在我的PC上,該位置最終位於C的根目錄下,因此C:\\ tmp

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM