Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

linux pyspark select java version

import findspark
import os
spark_location='/opt/spark-2.4.3/' # Set your own
java8_location= '/usr/lib/jvm/java-8-openjdk-amd64' # Set your own
os.environ['JAVA_HOME'] = java8_location
findspark.init(spark_home=spark_location) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #pyspark #select #java #version
ADD COMMENT
Topic
Name
6+8 =