You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Abhishek Jain <ab...@gmail.com> on 2019/05/02 11:38:16 UTC
ClassNotFoundException on remote cluster
Hi,
I'm running into ClassNotFoundException only when I run my application on a
standalone cluster (using flink cli). If i directly run the main class in
my IDE, it's working fine.
I've copied the stacktrace from flink standalone session logs here
<https://gist.github.com/abhijain21/af769ff19d11b69417a3c389bf5e5fa7>.
--
Warm Regards,
Abhishek Jain
Re: ClassNotFoundException on remote cluster
Posted by Chesnay Schepler <ch...@apache.org>.
Historically spring applications are not interacting well with Flink;
we've had people run in these issues multiple times on the mailing
lists. Unfortunately, I don't believe any committer has any real
experience in this area; I'm afraid I can neither help you myself nor
refer you to someone that could :/
On 02/05/2019 15:26, Abhishek Jain wrote:
> Also, the `execute()` call happens inside `MyWikiAnalysis` spring
> managed bean on PostConstruct but I don't think that should cause any
> issue. Any idea?
>
> Let me know if you need more info on my environment.
>
> On Thu, 2 May 2019 at 17:32, Abhishek Jain <abhijain21@gmail.com
> <ma...@gmail.com>> wrote:
>
> This is a spring boot app that I've packaged using maven (Apache
> Maven 3.3.9). I've verified the class is present in the jar as well.
>
> On Thu, 2 May 2019 at 17:25, Chesnay Schepler <chesnay@apache.org
> <ma...@apache.org>> wrote:
>
> How are you packaging the jar that you submit? Specifically,
> are you ensuring that all your classes are actually contained
> within?
>
> On 02/05/2019 13:38, Abhishek Jain wrote:
>> Hi,
>> I'm running into ClassNotFoundException only when I run my
>> application on a standalone cluster (using flink cli). If i
>> directly run the main class in my IDE, it's working fine.
>> I've copied the stacktrace from flink standalone session logs
>> here
>> <https://gist.github.com/abhijain21/af769ff19d11b69417a3c389bf5e5fa7>.
>>
>> --
>> Warm Regards,
>> Abhishek Jain
>
>
>
>
> --
> Warm Regards,
> Abhishek Jain
>
>
>
> --
> Warm Regards,
> Abhishek Jain
Re: ClassNotFoundException on remote cluster
Posted by Abhishek Jain <ab...@gmail.com>.
Also, the `execute()` call happens inside `MyWikiAnalysis` spring managed
bean on PostConstruct but I don't think that should cause any issue. Any
idea?
Let me know if you need more info on my environment.
On Thu, 2 May 2019 at 17:32, Abhishek Jain <ab...@gmail.com> wrote:
> This is a spring boot app that I've packaged using maven (Apache Maven
> 3.3.9). I've verified the class is present in the jar as well.
>
> On Thu, 2 May 2019 at 17:25, Chesnay Schepler <ch...@apache.org> wrote:
>
>> How are you packaging the jar that you submit? Specifically, are you
>> ensuring that all your classes are actually contained within?
>>
>> On 02/05/2019 13:38, Abhishek Jain wrote:
>>
>> Hi,
>> I'm running into ClassNotFoundException only when I run my application on
>> a standalone cluster (using flink cli). If i directly run the main class in
>> my IDE, it's working fine.
>> I've copied the stacktrace from flink standalone session logs here
>> <https://gist.github.com/abhijain21/af769ff19d11b69417a3c389bf5e5fa7>.
>>
>> --
>> Warm Regards,
>> Abhishek Jain
>>
>>
>>
>
> --
> Warm Regards,
> Abhishek Jain
>
--
Warm Regards,
Abhishek Jain
Re: ClassNotFoundException on remote cluster
Posted by Abhishek Jain <ab...@gmail.com>.
This is a spring boot app that I've packaged using maven (Apache Maven
3.3.9). I've verified the class is present in the jar as well.
On Thu, 2 May 2019 at 17:25, Chesnay Schepler <ch...@apache.org> wrote:
> How are you packaging the jar that you submit? Specifically, are you
> ensuring that all your classes are actually contained within?
>
> On 02/05/2019 13:38, Abhishek Jain wrote:
>
> Hi,
> I'm running into ClassNotFoundException only when I run my application on
> a standalone cluster (using flink cli). If i directly run the main class in
> my IDE, it's working fine.
> I've copied the stacktrace from flink standalone session logs here
> <https://gist.github.com/abhijain21/af769ff19d11b69417a3c389bf5e5fa7>.
>
> --
> Warm Regards,
> Abhishek Jain
>
>
>
--
Warm Regards,
Abhishek Jain
Re: ClassNotFoundException on remote cluster
Posted by Chesnay Schepler <ch...@apache.org>.
How are you packaging the jar that you submit? Specifically, are you
ensuring that all your classes are actually contained within?
On 02/05/2019 13:38, Abhishek Jain wrote:
> Hi,
> I'm running into ClassNotFoundException only when I run my application
> on a standalone cluster (using flink cli). If i directly run the main
> class in my IDE, it's working fine.
> I've copied the stacktrace from flink standalone session logs here
> <https://gist.github.com/abhijain21/af769ff19d11b69417a3c389bf5e5fa7>.
>
> --
> Warm Regards,
> Abhishek Jain