You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2017/12/12 21:06:07 UTC

tinkerpop git commit: CTR: Fixed a few links, but more importantly waited for the zip command, used in a code block, to finish before proceeding.

Repository: tinkerpop
Updated Branches:
  refs/heads/tp32 fb6405119 -> a86097d08


CTR: Fixed a few links, but more importantly waited for the zip command, used in a code block, to finish before proceeding.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a86097d0
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a86097d0
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a86097d0

Branch: refs/heads/tp32
Commit: a86097d0823397f0485566e8fd5def7a82fb32f3
Parents: fb64051
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Tue Dec 12 14:04:01 2017 -0700
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Tue Dec 12 14:04:01 2017 -0700

----------------------------------------------------------------------
 docs/src/recipes/olap-spark-yarn.asciidoc | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a86097d0/docs/src/recipes/olap-spark-yarn.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/recipes/olap-spark-yarn.asciidoc b/docs/src/recipes/olap-spark-yarn.asciidoc
index e2be4f6..634adeb 100644
--- a/docs/src/recipes/olap-spark-yarn.asciidoc
+++ b/docs/src/recipes/olap-spark-yarn.asciidoc
@@ -18,10 +18,10 @@ limitations under the License.
 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
+TinkerPop's combination of link:http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[SparkGraphComputer]
+and link: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
+link: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.
@@ -51,8 +51,8 @@ it is to look at the install script at https://github.com/apache/tinkerpop/blob/
 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
+link:http://tinkerpop.apache.org/docs/x.y.z/reference/#spark-plugin[Spark plugin] (the
+link: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.
 
@@ -96,7 +96,7 @@ hadoop = System.getenv('HADOOP_HOME')
 hadoopConfDir = System.getenv('HADOOP_CONF_DIR')
 archive = 'spark-gremlin.zip'
 archivePath = "/tmp/$archive"
-['bash', '-c', "rm $archivePath 2>/dev/null; cd ext/spark-gremlin/lib && zip $archivePath *.jar"].execute()
+['bash', '-c', "rm -f $archivePath; cd ext/spark-gremlin/lib && zip $archivePath *.jar"].execute().waitFor()
 conf = new PropertiesConfiguration('conf/hadoop/hadoop-gryo.properties')
 conf.setProperty('spark.master', 'yarn-client')
 conf.setProperty('spark.yarn.dist.archives', "$archivePath")
@@ -121,7 +121,7 @@ Explanation
 ~~~~~~~~~~~
 
 This recipe does not require running the `bin/hadoop/init-tp-spark.sh` script described in the
-http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[reference documentation] and thus is also
+link:http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[reference documentation] and thus is also
 valid for cluster users without access permissions to do so.
 Rather, it exploits the `spark.yarn.dist.archives` property, which points to an archive with jars on the local file
 system and is loaded into the various YARN containers. As a result the `spark-gremlin.zip` archive becomes available
@@ -134,7 +134,7 @@ Also the `HADOOP_GREMLIN_LIBS` mechanism is not used because it can not work for
 added to the `SparkContext` are not available to the YARN application master).
 
 The `gremlin.spark.persistContext` property is explained in the reference documentation of
-http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[SparkGraphComputer]: it helps in getting
+link:http://tinkerpop.apache.org/docs/x.y.z/reference/#sparkgraphcomputer[SparkGraphComputer]: it helps in getting
 follow-up OLAP queries answered faster, because you skip the overhead for getting resources from YARN.
 
 Additional configuration options
@@ -154,4 +154,4 @@ jar.
 You may not like the idea that the Hadoop and Spark jars from the TinkerPop distribution differ from the versions in
 your cluster. If so, just build TinkerPop from source with the corresponding dependencies changed in the various `pom.xml`
 files (e.g. `spark-core_2.10-1.6.1-some-vendor.jar` instead of `spark-core_2.10-1.6.1.jar`). Of course, TinkerPop will
-only build for exactly matching or slightly differing artifact versions.
\ No newline at end of file
+only build for exactly matching or slightly differing artifact versions.