[
https://issues.apache.org/jira/browse/TINKERPOP-3133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925852#comment-17925852
]
ASF GitHub Bot commented on TINKERPOP-3133:
-------------------------------------------
ministat commented on code in PR #3026:
URL: https://github.com/apache/tinkerpop/pull/3026#discussion_r1950247341
##########
spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/structure/io/OutputFormatRDD.java:
##########
@@ -46,9 +46,15 @@ public final class OutputFormatRDD implements OutputRDD {
public void writeGraphRDD(final Configuration configuration, final
JavaPairRDD<Object, VertexWritable> graphRDD) {
final org.apache.hadoop.conf.Configuration hadoopConfiguration =
ConfUtil.makeHadoopConfiguration(configuration);
final String outputLocation =
hadoopConfiguration.get(Constants.GREMLIN_HADOOP_OUTPUT_LOCATION);
+ final String repartitionString =
hadoopConfiguration.get(Constants.GREMLIN_SPARK_OUTPUT_REPARTITION);
Review Comment:
Accept
> Customize the file count by repartition the OutputRDD in Spark to reduce HDFS
> small files
> -----------------------------------------------------------------------------------------
>
> Key: TINKERPOP-3133
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3133
> Project: TinkerPop
> Issue Type: Improvement
> Components: hadoop
> Affects Versions: 3.7.3
> Reporter: Redriver
> Priority: Major
>
> The Graph export to HDFS through OutputRDD, but we often saw there are many
> small files in production environment. For example, there are more than
> 50,000 files and each is about 17 MB, which will trigger HDFS small files
> alerts. So, it is better allow customize the output file numbers by
> repartition the OutputRDD.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)