{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/72950905","id":72950905,"diff_hunk":"@@ -0,0 +1,232 @@\n+#\n+# Licensed to the Apache Software Foundation (ASF) under one or more\n+# contributor license agreements.  See the NOTICE file distributed with\n+# this work for additional information regarding copyright ownership.\n+# The ASF licenses this file to You under the Apache License, Version 2.0\n+# (the \"License\"); you may not use this file except in compliance with\n+# the License.  You may obtain a copy of the License at\n+#\n+#    http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+#\n+\n+# Functions to install Spark in case the user directly downloads SparkR\n+# from CRAN.\n+\n+#' Download and Install Apache Spark to a Local Directory\n+#' \n+#' \\code{install.spark} downloads and installs Spark to a local directory if\n+#' it is not found. The Spark version we use is the same as the SparkR version.\n+#' Users can specify a desired Hadoop version, the remote mirror site, and\n+#' the directory where the package is installed locally.\n+#'\n+#' The full url of remote file is inferred from \\code{mirrorUrl} and \\code{hadoopVersion}.\n+#' \\code{mirrorUrl} specifies the remote path to a Spark folder. It is followed by a subfolder\n+#' named after the Spark version (that corresponds to SparkR), and then the tar filename.\n+#' The filename is composed of four parts, i.e. [Spark version]-bin-[Hadoop version].tgz.\n+#' For example, the full path for a Spark 2.0.0 package for Hadoop 2.7 from\n+#' \\code{http://apache.osuosl.org} has path:\n+#' \\code{http://apache.osuosl.org/spark/spark-2.0.0/spark-2.0.0-bin-hadoop2.7.tgz}.\n+#' For \\code{hadoopVersion = \"without\"}, [Hadoop version] in the filename is then\n+#' \\code{without-hadoop}.\n+#'\n+#' @param hadoopVersion Version of Hadoop to install. Default is \\code{\"2.7\"}. It can take other\n+#'                      version number in the format of \"int.int\".\n+#'                      If \\code{hadoopVersion = \"without\"}, \"Hadoop free\" build is installed.\n+#'                      See\n+#'                      \\href{http://spark.apache.org/docs/latest/hadoop-provided.html}{\n+#'                      \"Hadoop Free\" Build} for more information.\n+#'                      Other patched version names can also be used, e.g. \\code{\"cdh4\"}\n+#' @param mirrorUrl base URL of the repositories to use. The directory layout should follow\n+#'                  \\href{http://www.apache.org/dyn/closer.lua/spark/}{Apache mirrors}.\n+#' @param localDir a local directory where Spark is installed. The directory contains\n+#'                 version-specific folders of Spark packages. Default is path to\n+#'                 the cache directory:\n+#'                 \\itemize{\n+#'                   \\item Mac OS X: \\file{~/Library/Caches/spark}\n+#'                   \\item Unix: \\env{$XDG_CACHE_HOME} if defined, otherwise \\file{~/.cache/spark}\n+#'                   \\item Win XP:\n+#'                         \\file{C:\\\\Documents and Settings\\\\<username>\\\\Local Settings\\\\Application\n+#'                         Data\\\\spark\\\\spark\\\\Cache}\n+#'                   \\item Win Vista:\n+#'                         \\file{C:\\\\Users\\\\<username>\\\\AppData\\\\Local\\\\spark\\\\spark\\\\Cache}\n+#'                 }\n+#' @param overwrite If \\code{TRUE}, download and overwrite the existing tar file in localDir\n+#'                  and force re-install Spark (in case the local directory or file is corrupted)\n+#' @return \\code{install.spark} returns the local directory where Spark is found or installed\n+#' @rdname install.spark\n+#' @name install.spark\n+#' @export\n+#' @examples\n+#'\\dontrun{\n+#' install.spark()\n+#'}\n+#' @note install.spark since 2.1.0\n+#' @seealso See available Hadoop versions:\n+#'          \\href{http://spark.apache.org/downloads.html}{Apache Spark}\n+install.spark <- function(hadoopVersion = \"2.7\", mirrorUrl = NULL,\n+                          localDir = NULL, overwrite = FALSE) {\n+  version <- paste0(\"spark-\", packageVersion(\"SparkR\"))\n+  hadoopVersion <- tolower(hadoopVersion)\n+  hadoopVersionName <- hadoop_version_name(hadoopVersion)\n+  packageName <- paste(version, \"bin\", hadoopVersionName, sep = \"-\")\n+  localDir <- ifelse(is.null(localDir), spark_cache_path(),\n+                     normalizePath(localDir, mustWork = FALSE))\n+\n+  if (is.na(file.info(localDir)$isdir)) {\n+    dir.create(localDir, recursive = TRUE)\n+  }\n+\n+  packageLocalDir <- file.path(localDir, packageName)\n+\n+  if (overwrite) {\n+    message(paste0(\"Overwrite = TRUE: download and overwrite the tar file\",\n+                   \"and Spark package directory if they exist.\"))\n+  }\n+\n+  # can use dir.exists(packageLocalDir) under R 3.2.0 or later\n+  if (!is.na(file.info(packageLocalDir)$isdir) && !overwrite) {\n+    fmt <- \"Spark %s for Hadoop %s is found in %s\"\n+    msg <- sprintf(fmt, version, ifelse(hadoopVersion == \"without\", \"Free build\", hadoopVersion),\n+                   packageLocalDir)\n+    message(msg)\n+    Sys.setenv(SPARK_HOME = packageLocalDir)\n+    return(invisible(packageLocalDir))\n+  }\n+\n+  packageLocalPath <- paste0(packageLocalDir, \".tgz\")\n+  tarExists <- file.exists(packageLocalPath)\n+\n+  if (tarExists && !overwrite) {\n+    message(\"tar file found.\")\n+  } else {\n+    robust_download_tar(mirrorUrl, version, hadoopVersion, packageName, packageLocalPath)\n+  }\n+\n+  message(sprintf(\"Installing to %s\", localDir))\n+  untar(tarfile = packageLocalPath, exdir = localDir)\n+  if (!tarExists || overwrite) {\n+    unlink(packageLocalPath)\n+  }\n+  message(\"DONE.\")\n+  Sys.setenv(SPARK_HOME = packageLocalDir)\n+  invisible(packageLocalDir)\n+}\n+\n+robust_download_tar <- function(mirrorUrl, version, hadoopVersion, packageName, packageLocalPath) {\n+  # step 1: use user-provided url\n+  if (!is.null(mirrorUrl)) {\n+    msg <- sprintf(\"Use user-provided mirror site: %s.\", mirrorUrl)\n+    message(msg)\n+    success <- direct_download_tar(mirrorUrl, version, hadoopVersion,\n+                                   packageName, packageLocalPath)\n+    if (success) return()\n+  } else {\n+    message(\"Mirror site not provided.\")\n+  }\n+\n+  # step 2: use url suggested from apache website\n+  message(\"Looking for site suggested from apache website...\")\n+  mirrorUrl <- get_preferred_mirror()\n+  if (!is.null(mirrorUrl)) {\n+    success <- direct_download_tar(mirrorUrl, version, hadoopVersion,\n+                                   packageName, packageLocalPath)\n+    if (success) return()\n+  } else {\n+    message(\"Unable to find suggested mirror site.\")\n+  }\n+\n+  # step 3: use backup option\n+  message(\"To use backup site...\")\n+  mirrorUrl <- default_mirror_url()\n+  success <- direct_download_tar(mirrorUrl, version, hadoopVersion,\n+                                 packageName, packageLocalPath)\n+  if (success) {\n+    return(packageLocalPath)\n+  } else {\n+    msg <- sprintf(paste(\"Unable to download Spark %s for Hadoop %s.\",\n+                         \"Please check network connection, Hadoop version,\",\n+                         \"or provide other mirror sites.\"),\n+                   version, ifelse(hadoopVersion == \"without\", \"Free build\", hadoopVersion))\n+    stop(msg)\n+  }\n+}\n+\n+get_preferred_mirror <- function() {\n+  jsonUrl <- \"http://www.apache.org/dyn/closer.cgi?as_json=1\"\n+  textLines <- readLines(jsonUrl, warn = FALSE)\n+  rowNum <- grep(\"\\\"preferred\\\"\", textLines)\n+  linePreferred <- textLines[rowNum]\n+  matchInfo <- regexpr(\"\\\"[A-Za-z][A-Za-z0-9+-.]*://.+\\\"\", linePreferred)\n+  if (matchInfo != -1) {\n+    startPos <- matchInfo + 1\n+    endPos <- matchInfo + attr(matchInfo, \"match.length\") - 2\n+    mirrorPreferred <- base::substr(linePreferred, startPos, endPos)\n+    mirrorPreferred <- paste0(mirrorPreferred, \"spark\")\n+    message(sprintf(\"Preferred mirror site found: %s\", mirrorPreferred))\n+  } else {\n+    mirrorPreferred <- NULL\n+  }\n+  mirrorPreferred\n+}\n+\n+direct_download_tar <- function(mirrorUrl, version, hadoopVersion, packageName, packageLocalPath) {\n+  packageRemotePath <- paste0(\n+    file.path(mirrorUrl, version, packageName), \".tgz\")\n+  fmt <- paste(\"Downloading Spark %s for Hadoop %s from:\\n- %s\")\n+  msg <- sprintf(fmt, version, ifelse(hadoopVersion == \"without\", \"Free build\", hadoopVersion),\n+                 packageRemotePath)\n+  message(msg)\n+\n+  isFail <- tryCatch(download.file(packageRemotePath, packageLocalPath),\n+                     error = function(e) {\n+                       message(sprintf(\"Fetch failed from %s\", mirrorUrl))\n+                       TRUE\n+                     })\n+  !isFail\n+}\n+\n+default_mirror_url <- function() {\n+  \"http://www-us.apache.org/dist/spark\"\n+}\n+\n+hadoop_version_name <- function(hadoopVersion) {\n+  if (hadoopVersion == \"without\") {\n+    \"without-hadoop\"\n+  } else if (grepl(\"^[0-9]+\\\\.[0-9]+$\", hadoopVersion, perl = TRUE)) {\n+    paste0(\"hadoop\", hadoopVersion)\n+  } else {\n+    hadoopVersion","path":"R/pkg/R/install.R","position":202,"original_position":204,"commit_id":"64756de02cae427be9b6795af3f40abbd30fcc06","original_commit_id":"f37a07c1fc16e508822ffb5bb051234054e3908d","user":{"login":"junyangq","id":15318264,"avatar_url":"https://avatars.githubusercontent.com/u/15318264?v=3","gravatar_id":"","url":"https://api.github.com/users/junyangq","html_url":"https://github.com/junyangq","followers_url":"https://api.github.com/users/junyangq/followers","following_url":"https://api.github.com/users/junyangq/following{/other_user}","gists_url":"https://api.github.com/users/junyangq/gists{/gist_id}","starred_url":"https://api.github.com/users/junyangq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junyangq/subscriptions","organizations_url":"https://api.github.com/users/junyangq/orgs","repos_url":"https://api.github.com/users/junyangq/repos","events_url":"https://api.github.com/users/junyangq/events{/privacy}","received_events_url":"https://api.github.com/users/junyangq/received_events","type":"User","site_admin":false},"body":"Are we trying to validate the `-something` part? Without attempting to download, we still don't know if the input version is good or not? I might miss something here.","created_at":"2016-08-01T09:50:30Z","updated_at":"2016-08-01T09:50:30Z","html_url":"https://github.com/apache/spark/pull/14258#discussion_r72950905","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/14258","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/72950905"},"html":{"href":"https://github.com/apache/spark/pull/14258#discussion_r72950905"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/14258"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14258","id":77942045,"html_url":"https://github.com/apache/spark/pull/14258","diff_url":"https://github.com/apache/spark/pull/14258.diff","patch_url":"https://github.com/apache/spark/pull/14258.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/14258","number":14258,"state":"open","locked":false,"title":"[Spark-16579][SparkR] add install.spark function","user":{"login":"junyangq","id":15318264,"avatar_url":"https://avatars.githubusercontent.com/u/15318264?v=3","gravatar_id":"","url":"https://api.github.com/users/junyangq","html_url":"https://github.com/junyangq","followers_url":"https://api.github.com/users/junyangq/followers","following_url":"https://api.github.com/users/junyangq/following{/other_user}","gists_url":"https://api.github.com/users/junyangq/gists{/gist_id}","starred_url":"https://api.github.com/users/junyangq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junyangq/subscriptions","organizations_url":"https://api.github.com/users/junyangq/orgs","repos_url":"https://api.github.com/users/junyangq/repos","events_url":"https://api.github.com/users/junyangq/events{/privacy}","received_events_url":"https://api.github.com/users/junyangq/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\nAdd an install_spark function to the SparkR package. User can run `install_spark()` to install Spark to a local directory within R. \r\n\r\nUpdates:\r\n\r\nSeveral changes have been made:\r\n\r\n- `install.spark()`\r\n    - check existence of tar file in the cache folder, and download only if not found\r\n    - trial priority of mirror_url look-up: user-provided -> preferred mirror site from apache website -> hardcoded backup option\r\n    - use 2.0.0\r\n\r\n- `sparkR.session()`\r\n    - can install spark when not found in `SPARK_HOME`\r\n\r\n## How was this patch tested?\r\n\r\nManual tests, running the check-cran.sh script added in #14173.\r\n","created_at":"2016-07-19T09:13:03Z","updated_at":"2016-08-01T09:50:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"148e586edcbf7b2d07109cb05dbab6f6d18adea1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/14258/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/14258/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/14258/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/64756de02cae427be9b6795af3f40abbd30fcc06","head":{"label":"junyangq:SPARK-16579","ref":"SPARK-16579","sha":"64756de02cae427be9b6795af3f40abbd30fcc06","user":{"login":"junyangq","id":15318264,"avatar_url":"https://avatars.githubusercontent.com/u/15318264?v=3","gravatar_id":"","url":"https://api.github.com/users/junyangq","html_url":"https://github.com/junyangq","followers_url":"https://api.github.com/users/junyangq/followers","following_url":"https://api.github.com/users/junyangq/following{/other_user}","gists_url":"https://api.github.com/users/junyangq/gists{/gist_id}","starred_url":"https://api.github.com/users/junyangq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junyangq/subscriptions","organizations_url":"https://api.github.com/users/junyangq/orgs","repos_url":"https://api.github.com/users/junyangq/repos","events_url":"https://api.github.com/users/junyangq/events{/privacy}","received_events_url":"https://api.github.com/users/junyangq/received_events","type":"User","site_admin":false},"repo":{"id":45086006,"name":"spark","full_name":"junyangq/spark","owner":{"login":"junyangq","id":15318264,"avatar_url":"https://avatars.githubusercontent.com/u/15318264?v=3","gravatar_id":"","url":"https://api.github.com/users/junyangq","html_url":"https://github.com/junyangq","followers_url":"https://api.github.com/users/junyangq/followers","following_url":"https://api.github.com/users/junyangq/following{/other_user}","gists_url":"https://api.github.com/users/junyangq/gists{/gist_id}","starred_url":"https://api.github.com/users/junyangq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junyangq/subscriptions","organizations_url":"https://api.github.com/users/junyangq/orgs","repos_url":"https://api.github.com/users/junyangq/repos","events_url":"https://api.github.com/users/junyangq/events{/privacy}","received_events_url":"https://api.github.com/users/junyangq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/junyangq/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/junyangq/spark","forks_url":"https://api.github.com/repos/junyangq/spark/forks","keys_url":"https://api.github.com/repos/junyangq/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junyangq/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junyangq/spark/teams","hooks_url":"https://api.github.com/repos/junyangq/spark/hooks","issue_events_url":"https://api.github.com/repos/junyangq/spark/issues/events{/number}","events_url":"https://api.github.com/repos/junyangq/spark/events","assignees_url":"https://api.github.com/repos/junyangq/spark/assignees{/user}","branches_url":"https://api.github.com/repos/junyangq/spark/branches{/branch}","tags_url":"https://api.github.com/repos/junyangq/spark/tags","blobs_url":"https://api.github.com/repos/junyangq/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junyangq/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junyangq/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/junyangq/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junyangq/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/junyangq/spark/languages","stargazers_url":"https://api.github.com/repos/junyangq/spark/stargazers","contributors_url":"https://api.github.com/repos/junyangq/spark/contributors","subscribers_url":"https://api.github.com/repos/junyangq/spark/subscribers","subscription_url":"https://api.github.com/repos/junyangq/spark/subscription","commits_url":"https://api.github.com/repos/junyangq/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/junyangq/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/junyangq/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/junyangq/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/junyangq/spark/contents/{+path}","compare_url":"https://api.github.com/repos/junyangq/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junyangq/spark/merges","archive_url":"https://api.github.com/repos/junyangq/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junyangq/spark/downloads","issues_url":"https://api.github.com/repos/junyangq/spark/issues{/number}","pulls_url":"https://api.github.com/repos/junyangq/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/junyangq/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/junyangq/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junyangq/spark/labels{/name}","releases_url":"https://api.github.com/repos/junyangq/spark/releases{/id}","deployments_url":"https://api.github.com/repos/junyangq/spark/deployments","created_at":"2015-10-28T03:18:33Z","updated_at":"2015-10-28T03:19:03Z","pushed_at":"2016-08-01T09:40:57Z","git_url":"git://github.com/junyangq/spark.git","ssh_url":"git@github.com:junyangq/spark.git","clone_url":"https://github.com/junyangq/spark.git","svn_url":"https://github.com/junyangq/spark","homepage":null,"size":170675,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"6ee40d2cc5f467c78be662c1639fc3d5b7f796cf","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","deployments_url":"https://api.github.com/repos/apache/spark/deployments","created_at":"2014-02-25T08:00:08Z","updated_at":"2016-08-01T09:22:37Z","pushed_at":"2016-08-01T09:24:31Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":506091,"stargazers_count":9497,"watchers_count":9497,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8807,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":461,"forks":8807,"open_issues":461,"watchers":9497,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/14258"},"html":{"href":"https://github.com/apache/spark/pull/14258"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/14258"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/14258/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/14258/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/14258/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/64756de02cae427be9b6795af3f40abbd30fcc06"}}}}
{"actor":{"display_login":"junyangq"}}