java.lang.ClassNotFoundException: org.apache.spark.sql.Dataset
If you are executing this standalone you can try removing provided
from your dependencies. Provided means that you expect the dependencies to already be on the classpath when you run this application. So the Spark dependencies won't be included in your jar if you use provided
.
Select checkbox 'Include dependencies with "Provided" scope' in Run/Debug Configurations.