Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22861#discussion_r228992409
  
    --- Diff: 
external/avro/src/test/scala/org/apache/spark/sql/execution/benchmark/AvroWriteBenchmark.scala
 ---
    @@ -19,22 +19,17 @@ package org.apache.spark.sql.execution.benchmark
     
     /**
      * Benchmark to measure Avro data sources write performance.
    - * Usage:
    - * 1. with spark-submit: bin/spark-submit --class <this class> <spark sql 
test jar>
    - * 2. with sbt: build/sbt "avro/test:runMain <this class>"
    + * To run this benchmark:
    + * {{{
    + *   1. without sbt: bin/spark-submit --class <this class>
    --- End diff --
    
    I hint an exception when run: 
    ```
    bin/spark-submit --class 
org.apache.spark.sql.execution.benchmark.AvroWriteBenchmark --jars 
./core/target/spark-core_2.11-3.0.0-SNAPSHOT-tests.jar,./sql/catalyst/target/spark-catalyst_2.11-3.0.0-SNAPSHOT-tests.jar,./sql/core/target/spark-sql_2.11-3.0.0-SNAPSHOT-tests.jar
 ./external/avro/target/spark-avro_2.11-3.0.0-SNAPSHOT-tests.jar
    ```
    
    ```
    Exception in thread "main" org.apache.spark.sql.AnalysisException: Failed 
to find data source: Avro. Avro is built-in but external data source module 
since Spark 2.4. Please deploy the application as per the deployment section of 
"Apache Avro Data Source Guide".;
        at 
org.apache.spark.sql.execution.datasources.DataSource$.lookupDataSource(DataSource.scala:647)
        at 
org.apache.spark.sql.execution.datasources.DataSource.providingClass$lzycompute(DataSource.scala:94)
        at 
org.apache.spark.sql.execution.datasources.DataSource.providingClass(DataSource.scala:93)
        at 
org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:313)
        at 
org.apache.spark.sql.execution.command.CreateDataSourceTableCommand.run(createDataSourceTables.scala:78)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:70)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:68)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.executeCollect(commands.scala:79)
        at org.apache.spark.sql.Dataset$$anonfun$6.apply(Dataset.scala:195)
        at org.apache.spark.sql.Dataset$$anonfun$6.apply(Dataset.scala:195)
    ......
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to