Hi to all,
I have a source HBase table and I have to write to a Solr index. Unfortunately when I try to run the program on the cluster (Flink 1.1.1) I think I have some problem with dependencies. Can someone suggest me some fix? This is the error I have just after launching the job: Caused by: org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.flink.addons.hbase. at org.apache.flink.addons.hbase. at org.apache.flink.runtime. ... 25 more Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.base. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. at org.apache.hadoop.hbase. ... 38 more Best, Flavio |
You have the classical guava version conflict. Flink itself shades Guava away, but there may be multiple conflicting dependencies in your case (HBase / Solr). I would try to see which of the tool/libraries (HBase, Solr, ...) depend on Guava and create a shaded version of one of them On Fri, Dec 23, 2016 at 6:33 PM, Flavio Pompermaier <[hidden email]> wrote:
|
What do you meab exactly...? do you have a snippet of how I should edit the pom? On 23 Dec 2016 19:31, "Stephan Ewen" <[hidden email]> wrote:
|
I would just google for Guava conflict and "shading". Its a fairly common problem with Guava, there are quite a few guides out there how to address that.
On Fri, Dec 23, 2016 at 9:12 PM, Flavio Pompermaier <[hidden email]> wrote:
|
Ok thans Stephan! On 23 Dec 2016 21:16, "Stephan Ewen" <[hidden email]> wrote:
|
Found the problem...I compiled my flink dist using maven 3.3.9 but I didn't rerun install from dist directory as specified at https://ci.apache.org/projects/flink/flink-docs-release-1.1/setup/building.html#dependency-shading. Why is it necessary to recompile flink-dist? Best, Flavio On Fri, Dec 23, 2016 at 9:24 PM, Flavio Pompermaier <[hidden email]> wrote:
Flavio Pompermaier Phone: +(39) 0461 1823908 |
Free forum by Nabble | Edit this page |