anchor.diff:  it is to look at the install script at https://github.com/apache/tinkerpop/blob/x.y.z/docker/hadoop/install.sh
   and the `start hadoop` section of https://github.com/apache/tinkerpop/blob/x.y.z/docker/scripts/build.sh.
   
  -This recipe assumes that you installed the gremlin console with the
  -http://tinkerpop.apache.org/docs/x.y.z/reference/#spark-plugin[spark plugin] (the
  -http://tinkerpop.apache.org/docs/x.y.z/reference/#hadoop-plugin[hadoop plugin] is optional). Your Hadoop cluster
  -may have been configured to use file compression, e.g. lzo compression. If so, you need to copy the relevant
  -jar (e.g. `hadoop-lzo-*.jar`) to gremlin console's `ext/spark-gremlin/lib` folder.
  +This recipe assumes that you installed the Gremlin Console with the
  +http://tinkerpop.apache.org/docs/x.y.z/reference/#spark-plugin[Spark plugin] (the
  +http://tinkerpop.apache.org/docs/x.y.z/reference/#hadoop-plugin[Hadoop plugin] is optional). Your Hadoop cluster
  +may have been configured to use file compression, e.g. LZO compression. If so, you need to copy the relevant
  +jar (e.g. `hadoop-lzo-*.jar`) to Gremlin Console's `ext/spark-gremlin/lib` folder.
   
  -For starting the gremlin console in the right environment, create a shell script (e.g. `bin/spark-yarn.sh`) with the
  +For starting the Gremlin Console in the right environment, create a shell script (e.g. `bin/spark-yarn.sh`) with the
   contents below. Of course, actual values for `GREMLIN_HOME`, `HADOOP_HOME` and `HADOOP_CONF_DIR` need to be adapted to
   your particular environment.
   
  
positive.code: Running the job
  ~~~~~~~~~~~~~~~
  
  You can now run a gremlin OLAP query with Spark on Yarn:
  
  [source]
  ----
  
negative.code: limitations under the License.
  ////
  [[olap-spark-yarn]]
  OLAP traversals with Spark on YARN
  ----------------------------------
  
  TinkerPop's combination of http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[SparkGraphComputer]
  and http://tinkerpop.apache.org/docs/x.y.z/reference/#_properties_files[HadoopGraph] allows for running
  distributed, analytical graph queries (OLAP) on a computer cluster. The
  http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[reference documentation] covers the cases
  where Spark runs locally or where the cluster is managed by a Spark server. However, many users can only run OLAP jobs
  via the http://hadoop.apache.org/[Hadoop 2.x] Resource Manager (YARN), which requires `SparkGraphComputer` to be
  configured differently. This recipe describes this configuration.
  
  Approach
  ~~~~~~~~
  
  Most configuration problems of TinkerPop with Spark on YARN stem from three reasons:
  
  1. `SparkGraphComputer` creates its own `SparkContext` so it does not get any configs from the usual `spark-submit` command.
  2. The TinkerPop Spark plugin did not include Spark on YARN runtime dependencies until version 3.2.7/3.3.1.
  3. Resolving reason 2 by adding the cluster's Spark jars to the classpath may create all kinds of version
  conflicts with the Tinkerpop dependencies.
  
  