flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dániel Bali <balijanosdan...@gmail.com>
Subject Question about Hadoop profiles in POM
Date Fri, 20 Feb 2015 12:05:07 GMT

I was working on FLINK-1522
<https://issues.apache.org/jira/browse/FLINK-1522> and FLINK-1576
<https://issues.apache.org/jira/browse/FLINK-1576> and started converting
Gelly library examples to work with file inputs. I added a test for
LabelPropagationExample and got failures in Travis when hadoop.profile was
1 (Travis build <https://travis-ci.org/balidani/flink/builds/51440170>).

The error was the following:

[ERROR] Failed to execute goal
(default-testCompile) on project flink-gelly: Compilation failure:
Compilation failure:
[ERROR] /home/travis/build/balidani/flink/flink-staging/flink-gelly/src/test/java/org/apache/flink/graph/test/LabelPropagationExampleITCase.java:[21,30]
package com.google.common.base does not exist
[ERROR] /home/travis/build/balidani/flink/flink-staging/flink-gelly/src/test/java/org/apache/flink/graph/test/LabelPropagationExampleITCase.java:[22,28]
package com.google.common.io does not exist
[ERROR] /home/travis/build/balidani/flink/flink-staging/flink-gelly/src/test/java/org/apache/flink/graph/test/LabelPropagationExampleITCase.java:[80,53]
cannot find symbol

Then I looked at flink-tests and saw that there was a `profiles` part in
the POM that adds the dependency to guava for hadoop profile 1. I added
this to the POM of Gelly and it seems to fix the issue. (Travis build
<https://travis-ci.org/balidani/flink/builds/51496196>) (There is a
failure, but the log says it's a timeout)

Is this the correct way to solve this error?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message