Getting an "Error: Could not find or load main class" while running EMR?

105 Views Asked by At

I am trying to run jobs in Alibaba Cloud E-MapReduce, it throws me an error like

Error: Could not find or load main class

For even while trying to execute predefined examples like word count this error occurs, so that I think I am having some configuration error.

What I am missing?

1

There are 1 best solutions below

0
On BEST ANSWER

Alibaba Cloud E-MapReduce requires the path protocol header of the Job Jar as ossref in the job configuration.

just check the job configuration, if it is not ossref, change it to ossref.

I hope this will solve your problem.