Spark Graphx Describes Organization Chart Easy and Fast
GRAPHX


Here we have data:
First, I try it on an SQL database. Any database would do. Just use existing HIVE:
Create the 2 tables in hive, under database cstu, that was created before
Then add data into Vertex and Edge tables
Then I construct the SQL query as below:
Here is the Graph query to describe the org chart.
Run it in hive
Here is the result of query, compare with the org chart, it that right?
Now switch to Spark GraphX library with Scala:
Last updated