Skip to content

Commit a5a02f2

Browse files
author
Davies Liu
committed
Merge branch 'master' of github.com:apache/spark into R3
2 parents 168b7fe + 55f553a commit a5a02f2

File tree

139 files changed

+2664
-1045
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+2664
-1045
lines changed

R/pkg/DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,18 @@ Collate:
1919
'jobj.R'
2020
'RDD.R'
2121
'pairRDD.R'
22+
'SQLTypes.R'
2223
'column.R'
2324
'group.R'
2425
'schema.R'
2526
'DataFrame.R'
2627
'SQLContext.R'
28+
'backend.R'
2729
'broadcast.R'
30+
'client.R'
2831
'context.R'
2932
'deserialize.R'
3033
'serialize.R'
3134
'sparkR.R'
32-
'backend.R'
33-
'client.R'
3435
'utils.R'
3536
'zzz.R'

R/pkg/R/DataFrame.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# DataFrame.R - DataFrame class and methods implemented in S4 OO classes
1919

20-
#' @include jobj.R SQLTypes.R RDD.R pairRDD.R column.R group.R
20+
#' @include generics.R jobj.R SQLTypes.R RDD.R pairRDD.R column.R group.R
2121
NULL
2222

2323
setOldClass("jobj")

R/pkg/R/column.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Column Class
1919

20-
#' @include generics.R jobj.R
20+
#' @include generics.R jobj.R SQLTypes.R
2121
NULL
2222

2323
setOldClass("jobj")

R/pkg/R/group.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
# group.R - GroupedData class and methods implemented in S4 OO classes
1919

20+
#' @include generics.R jobj.R SQLTypes.R column.R
21+
NULL
22+
2023
setOldClass("jobj")
2124

2225
#' @title S4 class that represents a GroupedData

R/pkg/R/jobj.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
# References to objects that exist on the JVM backend
1919
# are maintained using the jobj.
2020

21+
#' @include generics.R
22+
NULL
23+
2124
# Maintain a reference count of Java object references
2225
# This allows us to GC the java object when it is safe
2326
.validJobjs <- new.env(parent = emptyenv())

R/pkg/R/pairRDD.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#
1717

1818
# Operations supported on RDDs contains pairs (i.e key, value)
19+
#' @include generics.R jobj.R RDD.R
20+
NULL
1921

2022
############ Actions and Transformations ############
2123

bin/spark-class

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,22 @@ if [ $(command -v "$JAR_CMD") ] ; then
8282
fi
8383
fi
8484

85+
LAUNCH_CLASSPATH="$SPARK_ASSEMBLY_JAR"
86+
87+
# Add the launcher build dir to the classpath if requested.
88+
if [ -n "$SPARK_PREPEND_CLASSES" ]; then
89+
LAUNCH_CLASSPATH="$SPARK_HOME/launcher/target/scala-$SPARK_SCALA_VERSION/classes:$LAUNCH_CLASSPATH"
90+
fi
91+
92+
export _SPARK_ASSEMBLY="$SPARK_ASSEMBLY_JAR"
93+
8594
# The launcher library will print arguments separated by a NULL character, to allow arguments with
8695
# characters that would be otherwise interpreted by the shell. Read that in a while loop, populating
8796
# an array that will be used to exec the final command.
8897
CMD=()
8998
while IFS= read -d '' -r ARG; do
9099
CMD+=("$ARG")
91-
done < <("$RUNNER" -cp "$SPARK_ASSEMBLY_JAR" org.apache.spark.launcher.Main "$@")
100+
done < <("$RUNNER" -cp "$LAUNCH_CLASSPATH" org.apache.spark.launcher.Main "$@")
92101

93102
if [ "${CMD[0]}" = "usage" ]; then
94103
"${CMD[@]}"

bin/spark-class2.cmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,22 @@ if "%SPARK_ASSEMBLY_JAR%"=="0" (
4646
exit /b 1
4747
)
4848

49+
set LAUNCH_CLASSPATH=%SPARK_ASSEMBLY_JAR%
50+
51+
rem Add the launcher build dir to the classpath if requested.
52+
if not "x%SPARK_PREPEND_CLASSES%"=="x" (
53+
set LAUNCH_CLASSPATH=%SPARK_HOME%\launcher\target\scala-%SPARK_SCALA_VERSION%\classes;%LAUNCH_CLASSPATH%
54+
)
55+
56+
set _SPARK_ASSEMBLY=%SPARK_ASSEMBLY_JAR%
57+
4958
rem Figure out where java is.
5059
set RUNNER=java
5160
if not "x%JAVA_HOME%"=="x" set RUNNER=%JAVA_HOME%\bin\java
5261

5362
rem The launcher library prints the command to be executed in a single line suitable for being
5463
rem executed by the batch interpreter. So read all the output of the launcher into a variable.
55-
for /f "tokens=*" %%i in ('cmd /C ""%RUNNER%" -cp %SPARK_ASSEMBLY_JAR% org.apache.spark.launcher.Main %*"') do (
64+
for /f "tokens=*" %%i in ('cmd /C ""%RUNNER%" -cp %LAUNCH_CLASSPATH% org.apache.spark.launcher.Main %*"') do (
5665
set SPARK_CMD=%%i
5766
)
5867
%SPARK_CMD%

0 commit comments

Comments
 (0)