[
https://issues.apache.org/jira/browse/HADOOP-12451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14997299#comment-14997299
]
Allen Wittenauer commented on HADOOP-12451:
-------------------------------------------
bq. so mvn fails when we try to run it with that profile.
It's failing because it can't resolve the hadoop-maven-plugins jar for
2.8.0-snapshot. Maven doesn't care about unmatched profiles:
{code}
$ cd hadoop-tools/hadoop-rumen
$ mvn compile -Pshelltest
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Rumen 3.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (create-testdirs) @ hadoop-rumen ---
[INFO] Executing tasks
main:
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
hadoop-rumen ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/Users/aw/Src/aw-github/hadoop/hadoop-tools/hadoop-rumen/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hadoop-rumen
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 95 source files to
/Users/aw/Src/aw-github/hadoop/hadoop-tools/hadoop-rumen/target/classes
[WARNING]
/Users/aw/Src/aw-github/hadoop/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTask.java:
Some input files use or override a deprecated API.
[WARNING]
/Users/aw/Src/aw-github/hadoop/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/LoggedTask.java:
Recompile with -Xlint:deprecation for details.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.821 s
[INFO] Finished at: 2015-11-09T12:31:22-08:00
[INFO] Final Memory: 27M/310M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "shelltest" could not be activated because it
does not exist.
{code}
> Setting HADOOP_HOME explicitly should be allowed
> ------------------------------------------------
>
> Key: HADOOP-12451
> URL: https://issues.apache.org/jira/browse/HADOOP-12451
> Project: Hadoop Common
> Issue Type: Bug
> Components: scripts
> Affects Versions: 2.7.1
> Reporter: Karthik Kambatla
> Assignee: Karthik Kambatla
> Priority: Blocker
> Fix For: 2.7.2
>
> Attachments: HADOOP-12451-branch-2.1.patch,
> HADOOP-12451-branch-2.addendum-1.patch, hadoop-12451-branch-2.addendum-2.patch
>
>
> HADOOP-11464 reinstates cygwin support. In the process, it sets HADOOP_HOME
> explicitly in hadoop-config.sh without checking if it has already been set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)