Nigel Jones created RANGER-1970: ----------------------------------- Summary: Build fails - rat issues with storm-agent Key: RANGER-1970 URL: https://issues.apache.org/jira/browse/RANGER-1970 Project: Ranger Issue Type: Bug Components: Ranger Reporter: Nigel Jones
Cloned ranger source into a clean directory (java is 8 u162 (oracle), OS is MacOS, maven is 3.5.2), , tried to build using the incantation recommended in the ranger docs: -DskipTests=false clean compile package install assembly:assembly Version info: 5:23 $ mvn --version Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T08:58:13+01:00) Maven home: /usr/local/Cellar/maven/3.5.2/libexec Java version: 1.8.0_162, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.3", arch: "x86_64", family: "mac" When doing this the build fails in [INFO] Rat check: Summary of files. Unapproved: 2 unknown: 2 generated: 0 approved: 24 licence. .... [INFO] Knox Security Plugin ............................... SUCCESS [04:50 min] [INFO] Storm Security Plugin .............................. FAILURE [ 18.102 s] [INFO] YARN Security Plugin ............................... SKIPPED ... [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project ranger-storm-plugin: Too many files with unapproved license: 2 See RAT report in: /Users/jonesn/IdeaProjects/ranger/storm-agent/target/rat.txt -> [Help 1] Looking at the cause I see in the rat.txt: Unapproved licenses: /Users/jonesn/IdeaProjects/ranger/storm-agent/logs/workers-artifacts/word-count-1-1517582937/1024/worker.yaml /Users/jonesn/IdeaProjects/ranger/storm-agent/logs/workers-artifacts/stormdev-2-1517582937/1027/worker.yaml And the files have indeed just been created: 4:53 $ cd /Users/jonesn/IdeaProjects/ranger/storm-agent/logs/workers-artifacts ✔ ~/IdeaProjects/ranger/storm-agent/logs/workers-artifacts [master|…3] 14:53 $ ls stormdev-2-1517582937 word-count-1-1517582937 ✔ ~/IdeaProjects/ranger/storm-agent/logs/workers-artifacts [master|…3] 14:53 $ ls -a . stormdev-2-1517582937 .. word-count-1-1517582937 ✔ ~/IdeaProjects/ranger/storm-agent/logs/workers-artifacts [master|…3] So this looks like a build oversight with storm agent - either this needs clearing up, or ignoring in rat config? -- This message was sent by Atlassian JIRA (v7.6.3#76005)