FAQ: I'm trying to run a script and seeing an error about "Unrecognized option: -s"
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 name>.jar not found".
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!
Dan Pryer - Quantexa Academy Team Lead
Did my reply answer your question? Then why not mark it as having answered in the bottom right corner of my post! 😁
When seeking help with an issue, please check out this post which gives some guidelines for how best to ask for support, thanks! 😊
- 89 Topics
- General Topics
- 27 Quantexa News & Announcements
- 7 Community Digest
- 23 Getting Started
- 277 Academy
- 4 Jobs Board
- Platform Topics
- 4 Release Announcements
Introduction to Quantexa Education Services
Feedback & Suggestions
Visual Scala Reference↗
Linux Command cheat sheet↗
GitHub cheat sheet↗