Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32305

Make `mvn clean` remove `metastore_db` and `spark-warehouse`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • Build, Tests
    • None

    Description

      Now we support two version of build-in hive and there are some test generated meta data not in target dir like `spark-warehouse`, `metastore_db`, they don't cleanup automatically when we run `mvn clean` command.

      So if we run `mvn clean test -pl sql/hive -am -Phadoop-2.7 -Phive -Phive-1.2 ` , the `metastore_db` dir will created and meta data will remains after test complete.

      Then we need manual cleanup `metastore_db` directory to ensure `mvn clean test -pl sql/hive -am -Phadoop-2.7 -Phive` command can succeed because the residual metastore data is not compatible.

      `spark-warehouse` will also cause test failure in some data residual scenarios too.

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: