spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felixcheung <>
Subject [GitHub] spark pull request #14258: [Spark-16579][SparkR] add install.spark function
Date Wed, 10 Aug 2016 00:12:13 GMT
Github user felixcheung commented on a diff in the pull request:
    --- Diff: R/pkg/R/install.R ---
    @@ -0,0 +1,230 @@
    +# Licensed to the Apache Software Foundation (ASF) under one or more
    +# contributor license agreements.  See the NOTICE file distributed with
    +# this work for additional information regarding copyright ownership.
    +# The ASF licenses this file to You under the Apache License, Version 2.0
    +# (the "License"); you may not use this file except in compliance with
    +# the License.  You may obtain a copy of the License at
    +# Unless required by applicable law or agreed to in writing, software
    +# distributed under the License is distributed on an "AS IS" BASIS,
    +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +# See the License for the specific language governing permissions and
    +# limitations under the License.
    +# Functions to install Spark in case the user directly downloads SparkR
    +# from CRAN.
    +#' Download and Install Apache Spark to a Local Directory
    +#' \code{install.spark} downloads and installs Spark to a local directory if
    +#' it is not found. The Spark version we use is the same as the SparkR version.
    +#' Users can specify a desired Hadoop version, the remote mirror site, and
    +#' the directory where the package is installed locally.
    +#' The full url of remote file is inferred from \code{mirrorUrl} and \code{hadoopVersion}.
    +#' \code{mirrorUrl} specifies the remote path to a Spark folder. It is followed by a
    +#' named after the Spark version (that corresponds to SparkR), and then the tar filename.
    +#' The filename is composed of four parts, i.e. [Spark version]-bin-[Hadoop version].tgz.
    +#' For example, the full path for a Spark 2.0.0 package for Hadoop 2.7 from
    +#' \code{} has path:
    +#' \code{}.
    +#' For \code{hadoopVersion = "without"}, [Hadoop version] in the filename is then
    +#' \code{without-hadoop}.
    +#' @param hadoopVersion Version of Hadoop to install. Default is \code{"2.7"}. It can
take other
    +#'                      version number in the format of "x.y" where x and y are integer.
    +#'                      If \code{hadoopVersion = "without"}, "Hadoop free" build is installed.
    +#'                      See
    +#'                      \href{}{
    +#'                      "Hadoop Free" Build} for more information.
    +#'                      Other patched version names can also be used, e.g. \code{"cdh4"}
    +#' @param mirrorUrl base URL of the repositories to use. The directory layout should
    +#'                  \href{}{Apache mirrors}.
    +#' @param localDir a local directory where Spark is installed. The directory contains
    +#'                 version-specific folders of Spark packages. Default is path to
    +#'                 the cache directory:
    +#'                 \itemize{
    +#'                   \item Mac OS X: \file{~/Library/Caches/spark}
    +#'                   \item Unix: \env{$XDG_CACHE_HOME} if defined, otherwise \file{~/.cache/spark}
    +#'                   \item Windows: \file{\%LOCALAPPDATA\%\\spark\\spark\\Cache}. See
    +#'                         \href{}{
    +#'                         Windows Common Folder Variables} about \%LOCALAPPDATA\%
    +#'                 }
    +#' @param overwrite If \code{TRUE}, download and overwrite the existing tar file in localDir
    +#'                  and force re-install Spark (in case the local directory or file is
    +#' @return \code{install.spark} returns the local directory where Spark is found or installed
    +#' @rdname install.spark
    +#' @name install.spark
    --- End diff --
    ah you are right - I've missed the fact that's it's S3. I think as S3 is fine.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message