When I run my spark job from an IDE using Spark's Java APIs, I get the output in a desired encoding format (UTF-8). But if I start the 'spark-submit' method from command line, the output misses out on the encoding.
Is there a way where I can enforce encoding to 'spark-submit' when used through command line interface.
I am using Windows 10 OS and Eclipse IDE.
Your help will be really appreciated.
Thank you.