Created
February 25, 2020 06:07
-
-
Save baybatu/49bde7d4730994e451def1d4f3bd0416 to your computer and use it in GitHub Desktop.
Create spark session using hive metastore on local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SparkSession spark = SparkSession | |
.builder() | |
.appName("com.baybatu.sparkApp") | |
.master("local[*]") | |
.enableHiveSupport() | |
.config("dfs.nameservices", "nameService01") | |
.config("hive.metastore.uris", "thrift://10.20.30.40:8093") | |
.getOrCreate(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment