Exception in thread "main" java.lang.NoClassDefFoundError: scala/Product$class Error while running cronjobs in Spark #87
-
Hello team, We have setup reports for release 4.10.0 version by building and deploying the following jobs
As the reports are not generated, we executed cronjob manually and found below errors 3/07/20 17:27:43 INFO CodeGenerator: Code generated in 11.534373 ms Can someone pls help in resolving this error. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 17 replies
-
@sravani-64 - What is the version of Java we are using? Have we provisioned Spark properly? It appears to be a version mismatch issue. Please ensure that we have provisioned Spark version 3.1.0 and Java version 11 as required. |
Beta Was this translation helpful? Give feedback.
-
@manjudr Spark version is 3.1.3 and Java version is 11.0.2 |
Beta Was this translation helpful? Give feedback.
-
We rebuilt the artifacts |
Beta Was this translation helpful? Give feedback.
-
@manjudr Successfully built and deployed But the errors are same as earlier 23/07/21 13:12:29 INFO CodeGenerator: Code generated in 170.910612 ms |
Beta Was this translation helpful? Give feedback.
-
Yes collection-summary-report also has errors 23/07/21 13:31:49 INFO SparkContext: Successfully stopped SparkContext |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have removed the mentioned folders. Rebuit and deployed the sequence. Thank you |
Beta Was this translation helpful? Give feedback.
-
@manjudr The above error is resolved by modifying the storage account configurations and progress-exhaust and response-exhaust jobs are successful. java.util.NoSuchElementException: key [azureblob] not in the list of providers or apis: {} Can You please help how to resolve the error in last row Zip, encrypt and upload failed Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi @manjudr , Could You please suggest how to resolve the issue related to userinfo-exhaust job? |
Beta Was this translation helpful? Give feedback.
-
userinfo-exhaust job is also running in the same Azure cloud |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@manjudr , we have setup reports on production environment running on 4.4 version but the jobs are failing with invalid request error But When I deploy with existing artifact, facing invalid request error and jobs are failed |
Beta Was this translation helpful? Give feedback.
-
These are two different versions setup, sorry for the confusion. Could You Please help on userinfo-exhaust job issue and then later look into production build issue. |
Beta Was this translation helpful? Give feedback.
-
@manjudr userinfo exhaust job is failing with Redis exception errors |
Beta Was this translation helpful? Give feedback.
-
@manjudr userinfo exhaust job is failing with Redis exception errors |
Beta Was this translation helpful? Give feedback.
-
We have executed the user cache indexer ETL job already but still the same errors are found in the userinfo job execution logs |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
It's strange when everything appears fine, yet it doesn't work as expected. Have you thought about trying the latest version (4.10.5 +)?
Generally, this issue occurs if there is a Scala version conflict or if we pointed the jar to the wrong version of Spark or Java.
Could you kindly remove 'data-products', analytics-framework, and batch-models located at
/mount/data/analytics/models-2.0/
, from the spark then rebuild and deploy them in sequence?