-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use case class in the Scala notebook #40
Comments
I have no insight into what's wrong after poking and doing a bit of research. There have been similar reports of issues like this in the past, with slight variance in the details:
Interestingly enough, the case class works fine when using DataFrames and Datasets:
|
I used your example to test my spylon kernel env, it didn't work also. When I executed the code:
Do you meet such problem? I didn't figure out why the problem is produced, environment or others. |
hello guys,
|
I used Apache Toree-Scala kernel in jupyter lab with case class, and had the same problem. I found the jira: https://issues.apache.org/jira/browse/TOREE-428, but the bug also exists in the latest version. Any update now? |
the version of docker:
jupyter/all-spark-notebook:lastest
the way to start docker:
docker run -it --rm -p 8888:8888 jupyter/all-spark-notebook:latest
or
docker ps -a
docker start -i containerID
the steps:
Visit http://localhost:8888
Start an spylon-kernal notebook
input code above
the output:res0: Array[Array[String]] = Array(Array(Barack, Obama, 53), Array(George, Bush, 68), Array(Bill, Clinton, 68))
the error message:
The above code is working with the spark-shell. From error message, I speculated that the driver program didn't correctly handle case class Persons to RDD partition.
The text was updated successfully, but these errors were encountered: