If you want to use routing operations in Spark, a Routing jar file is available which supports compiling and running routing programs.
The Routing jar includes the Download Manager API, which provides the capability to manage
downloading the routing datasets programmatically. If your routing datasets are stored
remotely, then use the DownloadManager API to create a
DownloadManager
instance and pass it to the GRAInstanceBuilder
, which will download and
manage the datasets for you. In addition, the Download Manager can set permissions in the
case where you have multiple users interacting with the data. - For more information about the Download Manager API, see the Javadocs located in: /precisely/routing/software/spark2/sdk/javadocs/downloadmanager
The Routing jar also includes a Scala class called
GRAInstanceBuilder
that
constructs an IGRAInstance
to use for Routing requests. - For more information about the builder, see the Scaladocs located in: /precisely/routing/software/spark2/sdk/scaladocs/bigdata
- For more information about the Global Routing API (GRA), see the Javadocs located in: /precisely/routing/software/spark2/sdk/javadocs/gra
There are several options for deploying the Routing jar; refer to the following table to proceed according to your use case:
Application | Do this |
---|---|
Spark job | Installing and setting up the Routing Jar for a Spark Job |
Zeppelin notebook | Integrating the Routing Jar with Zeppelin |
Hue notebook | Integrating the Routing Jar with Hue |