0

I'm trying to run GraphX on Ipython notebook. 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/). But now I have only Python 2 kernel and I need GraphX to work with graph. How can I run it?

0

1 Answer 1

0

GraphX can only be referenced by the 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. For more information on GraphFrames, please check out Introducing GraphFrames.

Sign up to request clarification or add additional context in comments.

6 Comments

I wanted to install apache toree instead but got the following error: No such file or directory: '/usr/local/spark/python/lib'
This may be a case where the default location where Apache Toree is expecting the PYTHON_PATH isn't where you had installed python. Could you check the toree kernel.json and update the "PYTHONPATH": "/usr/local/spark/python:..." to your location. For more information, please check technippet.blogspot.com/2016/02/…
I followed this tutorial: launched apache toree kernel, but it doesn't respond (
Could you provide some more context as there isn't enough information here to debug. Saying this - why not use GraphFrames so that way you can use Python?
yeah, I think it would be great to use GraphFrames, but how can I integrate it with Ipython? Now in my /usr/local/share/jupyter/kernels I have only apache_toree_scala.
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.