Uh oh!
There was an error while loading. Please reload this page.
[SPARK-8813][SQL]Combine splits by size - #9097
Conversation
SparkQA
commented
Oct 13, 2015
Test build #43641 has finished for PR 9097 at commit
|
zhichao-li
commented
Oct 14, 2015
zhichao-li
commented
Oct 14, 2015
retest this please |
There was a problem hiding this comment.
Can you add a comment says, we only process combination within a single table partition, so all of the class name of the splits should be exactly the identical.
Nit: Writing the split class name in the very beginning? Instead of after all of the location info.
chenghao-intel
commented
Oct 16, 2015
It looks good in general, and can you also attach the benchmark result? |
zhichao-li
commented
Nov 5, 2015
@chenghao-intel Just tested with data which have 15w small files and 1000 partitions.
|
SparkQA
commented
Nov 5, 2015
Test build #45090 has finished for PR 9097 at commit
|
zhichao-li
commented
Nov 5, 2015
retest this please. |
chenghao-intel
commented
Nov 5, 2015
@zhichao-li has posted the benchmark result that we've done, but it's based on the fake data, I know you guys have requirement on this improvement, too, can you please test it with some real world cases? |
SparkQA
commented
Nov 5, 2015
Test build #45104 has finished for PR 9097 at commit
|
watermen
commented
Nov 9, 2015
@zhichao-li Can this patch support all of formats(Text/ORC/Parquet)? |
zhichao-li
commented
Nov 9, 2015
@watermen , Yes. It should support all formats in theory, since it combine on |
zhichao-li
commented
Nov 9, 2015
+public classCombineSplit implements InputSplit {
+privateInputSplit[] splits;
+private long totalLen;
+privateString[] locations;VS public classCombineFileSplitextendsInputSplit implements Writable {
privatePath[] paths;
private long[] startoffset;
private long[] lengths;
privateString[] locations;
private long totLength; |
There was a problem hiding this comment.
Please add a comment here to point out which version of Hive/Hadoop this implementation is based on.
useless import refactor
zhichao-li
commented
Feb 24, 2016
retest this please. |
SparkQA
commented
Feb 24, 2016
Test build #51839 has finished for PR 9097 at commit
|
SparkQA
commented
Feb 24, 2016
Test build #51845 has finished for PR 9097 at commit
|
zhichao-li
commented
Feb 24, 2016
retest this please. seems like it's not related to this pr: |
zhichao-li
commented
Feb 25, 2016
retest this please |
SparkQA
commented
Feb 25, 2016
Test build #51929 has finished for PR 9097 at commit
|
I believe this has been fixed in Spark SQL in 2.0.0. Going to close this. Thanks! |
KevinZwx
commented
Aug 18, 2016
This issue was marked as fixed in spark 2.0.0, but "spark.sql.mapper.splitCombineSize" doesn't show up in the list of the SQL configuration when I run command "spark.sql("SET -v").show(numRows = 200, truncate = false)" in spark-sql session. Do I make something wrong? |
The idea is simple and it try to solve this problem by combining splits by size which has been generated by the underlying inputformat, so it would support all of the inputformat in theory.
The combining size can be specified by
spark.sql.mapper.splitCombineSize, the default value is: -1 meaning turn off the combining logic.i.e partition -> splits-> [combineSplit, combineSplit,...]-> RDD