Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-980

Some remnants after running TestHiveSyncTool is created in local source dir

    XMLWordPrintableJSON

Details

    Description

      After running tests in TestHiveSyncTool, metadatastore_db directory is created in hudi-hive-sync/ . Need to fix this to be generated under the work dir created as part of the test. 

       

      This in turn creates issues while compiling, due to license header missing in these generated files. 

       

      ```

      [INFO] hudi-integ-test .................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 20.168 s
      [INFO] Finished at: 2020-05-29T11:50:08-04:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project hudi-hive: Too many files with unapproved license: 5 See RAT report in: /Users/sivabala/Documents/personal/projects/siva_hudi/apache_hudi/hudi/hudi-hive/target/rat.txt -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]

      ```

      Contents of rat file

      ```

      5 Unknown Licenses

      *****************************************************

      Files with unapproved licenses:

      /Users/sivabala/Documents/personal/projects/siva_hudi/apache_hudi/hudi/hudi-hive/metastore_db/db.lck
      /Users/sivabala/Documents/personal/projects/siva_hudi/apache_hudi/hudi/hudi-hive/metastore_db/README_DO_NOT_TOUCH_FILES.txt
      /Users/sivabala/Documents/personal/projects/siva_hudi/apache_hudi/hudi/hudi-hive/metastore_db/seg0/README_DO_NOT_TOUCH_FILES.txt
      /Users/sivabala/Documents/personal/projects/siva_hudi/apache_hudi/hudi/hudi-hive/metastore_db/log/README_DO_NOT_TOUCH_FILES.txt
      /Users/sivabala/Documents/personal/projects/siva_hudi/apache_hudi/hudi/hudi-hive/metastore_db/service.properties

      ```

       

      Attachments

        Issue Links

          Activity

            People

              shivnarayan sivabalan narayanan
              shivnarayan sivabalan narayanan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: