linux pyspark select java version

Solutions on MaxInterview for linux pyspark select java version by the best coders in the world

showing results for - "linux pyspark select java version"
Jordana
27 Aug 2019
1import findspark
2import os
3spark_location='/opt/spark-2.4.3/' # Set your own
4java8_location= '/usr/lib/jvm/java-8-openjdk-amd64' # Set your own
5os.environ['JAVA_HOME'] = java8_location
6findspark.init(spark_home=spark_location) 
similar questions
queries leading to this page
linux pyspark select java version