Getting Error while compiling spark scala code

#1

Hi,

I am getting error like “object apache is not a member of package org” and few more while compiling spark scala code?

Could someone suggest the solution to fix this?

Thanks

0 Likes

#2

@Dk_Sikka Can you elaborate with an example which you are trying?

0 Likes

#3

I had attached the code and error snapshot.Code

Attaching again the code and errors. Does that help?

0 Likes

#4

And here’s the errors:Error

0 Likes

#5

Could you please help resolving that issue?

0 Likes

#6

@Dk_Sikka, I think you have not setup the project properly. It is difficult to troubleshoot the issue based up on the information provided. First you need to learn Scala and then get into Spark.

@annapurna, share the link to setup the development environment and then take it further.

0 Likes

#7

sure, Let me know the detail… I will go thru of that detail and share the outcome.

0 Likes

#8

Follow below blog for setting up the environment.

0 Likes