Description
If Scala returns an error that has 2 stacktraces, livy-repl will stuck in busy state.
Example:
scala> sc.setJobGroup(groupName, groupName, true) <console>:27: error: type mismatch; found : Int required: String sc.setJobGroup(groupName, groupName, true) ^ <console>:27: error: type mismatch; found : Int required: String sc.setJobGroup(groupName, groupName, true) ^