[Multiple Programs Test Base] Consequence of Shading Guava away

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Multiple Programs Test Base] Consequence of Shading Guava away

Andra Lungu
Good morning,

I am using Gelly for my Thesis as well, so I have a separate repo where
Gelly is just a maven dependency.

https://github.com/andralungu/gelly-partitioning/tree/jaccard

My problem is that after Guava was shaded away, the tests cannot be built
in the same way as before(I mean a file can no longer be created by:

Files.write(JaccardSimilarityMeasureData.EDGES,
edgesFile, Charsets.UTF_8);

) - see JaccardSimilarityMeasureITCase for more.

I tried adding Guava as a dependency to my pom.xml, didn't work.

I should mention that a similar example, TriangleCount worked fine in this
repo with a similar test.

I should also mention that if I try to write a similar test in flink-gelly
itself, everything works nicely.

Could you please tell me what happened? And suggest a possible workaround?

Thanks!
Andra
Reply | Threaded
Open this post in threaded view
|

Re: [Multiple Programs Test Base] Consequence of Shading Guava away

Robert Metzger
Hey Andra,

I've checked out your repository and made some changes.
It seems to compile, also the Files thing seems to work (at least thats
what IntelliJ is telling me).
https://github.com/rmetzger/scratch/commit/203d647086d089575fb27223462d79c87771f1d1

Let me know if this is sufficient or if you need help.

Best,
Robert


On Tue, Mar 17, 2015 at 11:10 AM, Andra Lungu <[hidden email]> wrote:

> Good morning,
>
> I am using Gelly for my Thesis as well, so I have a separate repo where
> Gelly is just a maven dependency.
>
> https://github.com/andralungu/gelly-partitioning/tree/jaccard
>
> My problem is that after Guava was shaded away, the tests cannot be built
> in the same way as before(I mean a file can no longer be created by:
>
> Files.write(JaccardSimilarityMeasureData.EDGES,
> edgesFile, Charsets.UTF_8);
>
> ) - see JaccardSimilarityMeasureITCase for more.
>
> I tried adding Guava as a dependency to my pom.xml, didn't work.
>
> I should mention that a similar example, TriangleCount worked fine in this
> repo with a similar test.
>
> I should also mention that if I try to write a similar test in flink-gelly
> itself, everything works nicely.
>
> Could you please tell me what happened? And suggest a possible workaround?
>
> Thanks!
> Andra
>
Reply | Threaded
Open this post in threaded view
|

Re: [Multiple Programs Test Base] Consequence of Shading Guava away

Andra Lungu
Hi Robert,

Forgot to answer :) Worked like a charm. Thanks a lot!

On Tue, Mar 17, 2015 at 11:41 AM, Robert Metzger <[hidden email]>
wrote:

> Hey Andra,
>
> I've checked out your repository and made some changes.
> It seems to compile, also the Files thing seems to work (at least thats
> what IntelliJ is telling me).
>
> https://github.com/rmetzger/scratch/commit/203d647086d089575fb27223462d79c87771f1d1
>
> Let me know if this is sufficient or if you need help.
>
> Best,
> Robert
>
>
> On Tue, Mar 17, 2015 at 11:10 AM, Andra Lungu <[hidden email]>
> wrote:
>
> > Good morning,
> >
> > I am using Gelly for my Thesis as well, so I have a separate repo where
> > Gelly is just a maven dependency.
> >
> > https://github.com/andralungu/gelly-partitioning/tree/jaccard
> >
> > My problem is that after Guava was shaded away, the tests cannot be built
> > in the same way as before(I mean a file can no longer be created by:
> >
> > Files.write(JaccardSimilarityMeasureData.EDGES,
> > edgesFile, Charsets.UTF_8);
> >
> > ) - see JaccardSimilarityMeasureITCase for more.
> >
> > I tried adding Guava as a dependency to my pom.xml, didn't work.
> >
> > I should mention that a similar example, TriangleCount worked fine in
> this
> > repo with a similar test.
> >
> > I should also mention that if I try to write a similar test in
> flink-gelly
> > itself, everything works nicely.
> >
> > Could you please tell me what happened? And suggest a possible
> workaround?
> >
> > Thanks!
> > Andra
> >
>