spark-distcp
spark-distcp copied to clipboard
Handle missing directories
Trying to fix #10.
I introduced a configurable "missing directory" strategy:
- "fail" is default behaviour (HDFS)
- "create" auto creates target directory if not exist (HDFS)
- "log" doesn't fail nor create directories because it's not needed (S3, Ceph and other object storage)
Apologies for code quality, I am not fluent in Scala, tell me how to fix and improve.
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
38 Code Smells
No Coverage information
33.5% Duplication
I did my best to reduce code duplication and comply with SonarCloud check. Sadly I could achieve it. Note that I did'nt introduce most of this duplicated code.