简体   繁体   English

如何在IPython Notebook上运行GraphX?

[英]How to run GraphX on IPython Notebook?

I'm trying to run GraphX on Ipython notebook. 我正在尝试在Ipython笔记本上运行GraphX。 Firstly, I launched Spark/Hadoop clusters and then launched ipython notebook using this tutorial ( http://blog.insightdatalabs.com/jupyter-on-apache-spark-step-by-step/ ). 首先,我启动了Spark / Hadoop集群,然后使用本教程( http://blog.insightdatalabs.com/jupyter-on-apache-spark-step-by-step/ )启动了ipython Notebook。 But now I have only Python 2 kernel and I need GraphX to work with graph. 但是现在我只有Python 2内核,并且需要GraphX来使用graph。 How can I run it? 我该如何运行?

GraphX can only be referenced by the Scala API. GraphX只能由Scala API引用。 Saying this you can either use something like Jupyter-Scala so you can use Scala within Jupyter or you can use GraphFrames which supports the Python API. 这样一来,您可以使用Jupyter-Scala之类的东西,以便可以在Jupyter中使用Scala,也可以使用支持Python API的GraphFrames。 For more information on GraphFrames, please check out Introducing GraphFrames . 有关GraphFrames的更多信息,请查看GraphFrames介绍

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM