Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.5.3
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
- links to