2017-10-06 34 views
1

當試圖啓動在IBM DSX任何筆記本電腦與斯卡拉2.11/2.0星火內核,我得到以下錯誤:無法在IBM筆記本DSX星火2.0開始斯卡拉2.11

Dead kernel The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened

我保證我的其他筆記本電腦中的所有內核都停止了,並且我試過更改Spark版本。我能夠創建並啓動Python/Spark筆記本。

回答

1

如果您將與Scala環境衝突的JAR文件放入~/data/libs/,可能會發生這種情況。還有版本特定的子目錄。欲瞭解更多信息,請參閱DSX文件: https://datascience.ibm.com/docs/content/analyze-data/importing-libraries.html

從Python的筆記本,請執行以下檢查你的庫目錄的內容:

!ls -ARF ~/data/libs/ 

如果你發現任何可疑的東西在那裏,你也可以刪除來自Python筆記本的文件。例如:

!rm -f ~/data/libs/*.jar 

然後重新啓動Scala內核,看看是否有所作爲。


有時候,跟蹤問題的其他信息在kernel log files可用。從Python筆記本列表斯卡拉內核日誌文件,再使用:

!ls $SERVICE_HOME/kernel-scala-*.log 

使用然後得到一個日誌文件的內容:

!cat $SERVICE_HOME/kernel-scala-<timestamp>.log 
+0

這解決了這個問題。非常感謝你! –