-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3: Validation problems in job, exiting #1082
Comments
In the SJS log that you posted, I don't see any reference to "example_jobs.sql_average.SQLAverageJob" |
Hi, thanks for the reply, sorry for the mistake, I have updated the correct logs, can you please take a look now? |
@maharshibhavsar What does the curl command return? |
This is the response of the curl request through which I submitted the Job:
And this is the response of
|
Hi, I just figured that in both class (
to similar method used in
then it is running successfully. Is there any specific reason why the |
Can different validation logic causes job error? I mean, it's just examples and as my understanding, the validation can be edit to suit what we need to validate right? Or am I wrong? I just trying this SJS, so I'm beginner here.. |
Used Spark version
SPARK 2.2.1
Used Spark Job Server version
Released version 0.8.1
Deployed mode
Spark Standalone
Used Python Executable
Python3
Actual (wrong) behavior
While running the word_count example, gives successful output (even with the pysql-context), Sql_Average returns
java.lang.Exception:Python job failed with error code 1 and standard err [Validation problems in job, exiting]
Steps to reproduce
This works fine
curl -d 'input.strings = ["a", "b", "a", "b" ]' "localhost:8090/jobs?appName=example_jobs&classPath=example_jobs.word_count.WordCountSparkSessionJob&context=pysql-context"
I've also tried to provide input.strings as a .conf file which also worked good for WordCount.
But while trying SQL Average job, it is not working and gives the validation error.
curl -d @sqlinput.conf "localhost:8090/jobs?appName=example_jobs&classPath=example_jobs.sql_average.SQLAverageJob&context=pysql-context"
The content of sqlinput.conf is same as mentioned in the Docs, which is
input.data = [ ["bob", 20, 1200], ["jon", 21, 1400], ["mary", 20, 1300], ["sue", 21, 1600] ]
Logs
The text was updated successfully, but these errors were encountered: