Github user shivaram commented on a diff in the pull request: https://github.com/apache/spark/pull/6889#discussion_r32842867 --- Diff: R/pkg/R/sparkR.R --- @@ -278,3 +278,32 @@ sparkRHive.init <- function(jsc = NULL) { assign(".sparkRHivesc", hiveCtx, envir = .sparkREnv) hiveCtx } + +#' Assigns a group ID to all the jobs started by this thread until the group ID is set to a +#' different value or cleared. +#' +#' @param sc existing spark context +#' @param groupid the ID to be assigned to job groups +#' @param description description for the the job group ID +#' @param interruptOnCancel flag to indicate if the job is interrupted on job cancellation --- End diff -- Yeah @davies point is a good one. We can add an example usage here with something like ``` #' @examples #'\dontrun{ #' sc <- sparkR.init() # setJobGroup(sc, "group", "some group", TRUE) #'} ```
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org