Blog Post

Academy News & Announcements
1 MIN READ

FAQ: I'm trying to run a script and seeing an error about "Unrecognized option: -s"

Dan_Pryer's avatar
Dan_Pryer
Icon for Quantexa Team rankQuantexa Team
3 years ago

FAQ relevant for: all Academy versions

If you are trying to run a Scala script (e.g. ImportRawToParqet) and you see the above mentioned error, the main cause of this is that the program can't find the relevant JAR file to run. You may also get an error saying something like ".jar not found" or "jar does not exist, skipping."

The solution to this error is to build the relevant JAR file(s) as specified in the Spark Shell script that you tried to run the Scala file with. For example, in the "runQSS.sh" script of the academy task project, you will see that this requires two JARs: the data-source-all Project and Dependency shadow JARs. By building these two JARs and verifying that they are in the correct location and have the correct name to match the full file paths in the relevant Spark Shell script, this should fix the issue.

Let us know in a new post if the above solution didn't fix the issue for you!

Published 3 years ago
Version 1.0
No CommentsBe the first to comment