Closed SushantVarshney closed 7 years ago
What mist version you are using not the library one?
Could you please provide your router.conf
for this job?
And there is other thing that is missing. Mist jobs cannot return DataFrame
and datatype different from the list:
I am using mist-0.13.3-2.1.1.tar.gz
version and in the router.conf I am giving mapping of my jar like this:
mist-demo-app = {
path = "/home/hadoop/MistDemo.jar"
className = "com.yash.mist.demo.MistApp$"
namespace = "foo"
}
@SushantVarshney In your example the result type is Map[String, Array[Row]]
- current version of mist can't transmit that kind of object, list of supported types was mentioned by @blvp.
For example, you can fix that problem by converting Array[Row]
to Array[String]
val data: Array[String] = dataFrame.take(10).map(row => row.mkString(","))
Map("result" -> data)
@dos65 Thanks for your help.It solved the error. @blvp When you are going to rollout #322 as it will be very beneficial for me.
@SushantVarshney Glad that it helped you. We can't say certain release date, but I hope it will be soon =)
Want to run a demo scala code using Spark 2.1.1 version,so I used your Mist Maven dependency in pom as mentioned in your docs:
Below is my code which I am trying to run:
But after submitting job through it,I am getting below error:
Help me to solve this issue.