Uh oh!
There was an error while loading. Please reload this page.
[SPARK-19458][BUILD]load hive jars from local repo which has downloaded - #16803
[SPARK-19458][BUILD]load hive jars from local repo which has downloaded#16803windpiger wants to merge 14 commits into
Conversation
SparkQA
commented
Feb 4, 2017
Test build #72370 has finished for PR 16803 at commit
|
windpiger
commented
Feb 4, 2017
retest this please |
SparkQA
commented
Feb 4, 2017
Test build #72379 has finished for PR 16803 at commit
|
SparkQA
commented
Feb 4, 2017
Test build #72380 has finished for PR 16803 at commit
|
SparkQA
commented
Feb 4, 2017
Test build #72381 has finished for PR 16803 at commit
|
SparkQA
commented
Feb 4, 2017
Test build #72382 has finished for PR 16803 at commit
|
windpiger
commented
Feb 4, 2017
retest this please |
SparkQA
commented
Feb 4, 2017
Test build #72383 has finished for PR 16803 at commit
|
SparkQA
commented
Feb 4, 2017
Test build #72384 has finished for PR 16803 at commit
|
SparkQA
commented
Feb 5, 2017
Test build #72403 has finished for PR 16803 at commit
|
windpiger
commented
Feb 5, 2017
cloud-fan
commented
Feb 6, 2017
This should be taged as |
| OptionAssigner(args.ivyRepoPath, ALL_CLUSTER_MGRS, ALL_DEPLOY_MODES, | ||
| sysProp = "spark.jars.ivy"), | ||
| OptionAssigner(args.repositories, ALL_CLUSTER_MGRS, ALL_DEPLOY_MODES, | ||
| sysProp = "spark.jars.repositories"), |
There was a problem hiding this comment.
yes, it is used to store user's repos , then we can use it in download hive jars.
There was a problem hiding this comment.
We need to document it in http://spark.apache.org/docs/latest/configuration.html, like what we did for spark.jars.ivy
| def isSameFile(left: String, right: String): Boolean = { | ||
| val leftInput: FileInputStream = new FileInputStream(left) | ||
| val leftMd5 = UTF8String.fromString(org.apache.commons.codec |
There was a problem hiding this comment.
why convert it to UTF8String and compare?
SparkQA
commented
Feb 6, 2017
Test build #72425 has started for PR 16803 at commit |
windpiger
commented
Feb 6, 2017
retest this please |
SparkQA
commented
Feb 6, 2017
Test build #72428 has finished for PR 16803 at commit
|
Please rename it to |
gatorsmile
commented
Feb 6, 2017
Adding a new option |
windpiger
commented
Feb 6, 2017
yes, but in this pr which modify the IsolatedClientLoader.forVersion it only affects Hive jars, maybe later we can use it in another place to download other jars |
SparkQA
commented
Feb 6, 2017
Test build #72457 has finished for PR 16803 at commit
|
windpiger
commented
Feb 8, 2017
@cloud-fan@gatorsmile@yhuai I will appreciate that help to continue review this. Thanks a lot~ |
cloud-fan
commented
Feb 8, 2017
I'm not an expert about this area, but do we have to introduce a new config? can we load hive jar from local maven repo? |
windpiger
commented
Feb 9, 2017
if we not set ivy.jars.repos , it will use default ${user.home}/.m2 repo, and if we set ivy.jars.path which has download, it will can alos load from this path. |
SparkQA
commented
Feb 9, 2017
Test build #72629 has started for PR 16803 at commit |
windpiger
commented
Feb 9, 2017
@dongjoon-hyun@srowen could you help to review this? thanks very much! |
windpiger
commented
Feb 10, 2017
retest this please |
SparkQA
commented
Feb 10, 2017
Test build #72678 has finished for PR 16803 at commit
|
jiangxb1987
commented
Jun 19, 2017
retest this please. |
jiangxb1987
commented
Jun 19, 2017
ping @cloud-fan@gatorsmile@dongjoon-hyun Any thoughts on this? |
SparkQA
commented
Jun 19, 2017
Test build #78257 has finished for PR 16803 at commit
|
cloud-fan
commented
Jun 20, 2017
Sorry I'm not familiar with the build stuff, cc @srowen |
jiangxb1987
commented
Aug 30, 2017
cc @jerryshao |
jerryshao
commented
Aug 31, 2017
@windpiger can you please rebase the code, it seems too old to review. |
jiangxb1987
commented
Oct 3, 2017
Should we close this PR since it goes stale? @cloud-fan@jerryshao |
jiangxb1987
commented
Nov 6, 2017
I'm going to close this PR because it goes stale, please feel free to reopen it or open another PR if anyone have more thoughts on this issue. |
Closesapache#11494Closesapache#14158Closesapache#16803Closesapache#16864Closesapache#17455Closesapache#17936Closesapache#19377 Added: Closesapache#19380Closesapache#18642Closesapache#18377Closesapache#19632 Added: Closesapache#14471Closesapache#17402Closesapache#17953Closesapache#18607 Also cc srowen vanzin HyukjinKwon gatorsmile cloud-fan to see if you have other PRs to close. Author: Xingbo Jiang <xingbo.jiang@databricks.com> Closesapache#19669 from jiangxb1987/stale-prs.
What changes were proposed in this pull request?
Currently when we new a HiveClient for a specific metastore version and
spark.sql.hive.metastore.jarsis setted tomaven, Spark will download the hive jars from remote repo(http://www.datanucleus.org/downloads/maven2).we should allow the user to load hive jars from the user defined repos(e.g.local repo which has already downloaded), and user defined repos should take priority order than default repos(e.g. ${user.home}/.m2/repository)
the similar way which is to be referenced from
SparkSubmitprocessing--packageshttps://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala#L289-L298
How was this patch tested?
unit test added