Created
April 24, 2020 06:50
-
-
Save mykidong/e7996b96d5a741cc31b75aae176ae792 to your computer and use it in GitHub Desktop.
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
Dataset<Row> jdbcHiveDf = spark.read().format("jdbc-hive") | |
.option("dbTable", "mc.crawl_youtube") | |
.option("conditionClause", "where year = '2020' and month = '02' and day = '19'") | |
.option("hiveJdbcUrl", "jdbc:hive2://mc-d01.mykidong.io:10000") | |
.option("hiveJdbcUser", "xxxx") | |
.option("hiveJdbcPassword", "xxxx") | |
.option("hiveMetastoreUrl", "jdbc:mysql://mc-d01.mykidong.io:3306/hive") | |
.option("hiveMetastoreUser", "xxxx") | |
.option("hiveMetastorePassword", "xxxx") | |
.option("fetchsize", "10") | |
.option("tempPath", "/jdbc-hive-temp") | |
.load(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment