Skip to content

Commit 4982331

Browse files
committed
Remove SPARK_LIBRARY_PATH
1 parent 6eaf7d0 commit 4982331

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

bin/run-example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ fi
7575

7676
# Set JAVA_OPTS to be able to load native libraries and to set heap size
7777
JAVA_OPTS="$SPARK_JAVA_OPTS"
78-
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$SPARK_LIBRARY_PATH"
7978
# Load extra JAVA_OPTS from conf/java-opts, if it exists
8079
if [ -e "$FWDIR/conf/java-opts" ] ; then
8180
JAVA_OPTS="$JAVA_OPTS `cat $FWDIR/conf/java-opts`"

bin/spark-class

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ fi
9898

9999
# Set JAVA_OPTS to be able to load native libraries and to set heap size
100100
JAVA_OPTS="$OUR_JAVA_OPTS"
101-
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$SPARK_LIBRARY_PATH"
102101
JAVA_OPTS="$JAVA_OPTS -Xms$OUR_JAVA_MEM -Xmx$OUR_JAVA_MEM"
103102
# Load extra JAVA_OPTS from conf/java-opts, if it exists
104103
if [ -e "$FWDIR/conf/java-opts" ] ; then

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,9 @@ Apart from these, the following properties are also available, and may be useful
650650
<td>spark.executor.extraJavaOptions</td>
651651
<td>(none)</td>
652652
<td>
653-
A string of extra JVM options to pass to executors. For instance, GC settings. Note that
654-
it is illegal to set Spark properties or heap size settings with this flag.
653+
A string of extra JVM options to pass to executors. For instance, GC settings or custom
654+
paths for native code. Note that it is illegal to set Spark properties or heap size
655+
settings with this option.
655656
</td>
656657
</tr>
657658

@@ -678,7 +679,6 @@ The following variables can be set in `spark-env.sh`:
678679
* `JAVA_HOME`, the location where Java is installed (if it's not on your default `PATH`)
679680
* `PYSPARK_PYTHON`, the Python binary to use for PySpark
680681
* `SPARK_LOCAL_IP`, to configure which IP address of the machine to bind to.
681-
* `SPARK_LIBRARY_PATH`, to add search directories for native libraries.
682682
* `SPARK_CLASSPATH`, to add elements to Spark's classpath that you want to be present for _all_ applications.
683683
Note that applications can also add dependencies for themselves through `SparkContext.addJar` -- we recommend
684684
doing that when possible.

0 commit comments

Comments
 (0)