You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Byungsoo Oh (Jira)" <ji...@apache.org> on 2021/04/29 04:46:00 UTC

[jira] [Commented] (SPARK-35266) Fix an error in BenchmarkBase.scala that occurs when creating a benchmark file in a non-existent directory

    [ https://issues.apache.org/jira/browse/SPARK-35266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17335143#comment-17335143 ] 

Byungsoo Oh commented on SPARK-35266:
-------------------------------------

I fixed this issue and checked it's working fine. If it's okay, I will submit a pull request for this.

> Fix an error in BenchmarkBase.scala that occurs when creating a benchmark file in a non-existent directory
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-35266
>                 URL: https://issues.apache.org/jira/browse/SPARK-35266
>             Project: Spark
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 3.2.0
>            Reporter: Byungsoo Oh
>            Priority: Minor
>              Labels: easyfix
>
> When submitting a benchmark job using _org.apache.spark.benchmark.Benchmarks_ class with _SPARK_GENERATE_BENCHMARK_FILES=1_ option, an exception is raised if the directory where the benchmark file will be generated does not exist.
>  For example, if you execute _BLASBenchmark_ like the command below, you get an error unless you manually create _benchmarks/_ directory under _spark/mllib-local/_.
> {code:java}
> SPARK_GENERATE_BENCHMARK_FILES=1 bin/spark-submit \
> --driver-memory 6g --class org.apache.spark.benchmark.Benchmarks \
> --jars "`find . -name '*-SNAPSHOT-tests.jar' -o -name '*avro*-SNAPSHOT.jar' | paste -sd ',' -`" \
> "`find . -name 'spark-core*-SNAPSHOT-tests.jar'`" \
> "org.apache.spark.ml.linalg.BLASBenchmark"
> {code}
> This is caused by the code in _BenchmarkBase.scala_ where an attempt is made to create the benchmark file without validating the path.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org