ClassNotFoundException on remote cluster

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

ClassNotFoundException on remote cluster

Abhishek Jain
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.

--
Warm Regards,
Abhishek Jain
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException on remote cluster

Chesnay Schepler
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.

--
Warm Regards,
Abhishek Jain


Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException on remote cluster

Abhishek Jain
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 <[hidden email]> 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.

--
Warm Regards,
Abhishek Jain




--
Warm Regards,
Abhishek Jain
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException on remote cluster

Abhishek Jain
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 <[hidden email]> 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 <[hidden email]> 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.

--
Warm Regards,
Abhishek Jain




--
Warm Regards,
Abhishek Jain


--
Warm Regards,
Abhishek Jain
Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException on remote cluster

Chesnay Schepler
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 <[hidden email]> 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 <[hidden email]> 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.

--
Warm Regards,
Abhishek Jain




--
Warm Regards,
Abhishek Jain


--
Warm Regards,
Abhishek Jain