Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using a global map variable in a tJavaRow component. but its giving an error message.
"cannot make a static reference to the non-static field".
I am using BigData Spark job.
How Do i overcome this issue.
I need a globalmap or an alternative to this in spark jobs. Any ideas?
Hello Guys, I opened a ticket with Talend and Jack from talend already responded to this thread.. So we went and tried something different
--> Create context variable solution like TOM suggested.
--> Instead of usting tJavaRow, use tJava then you will not get the casting error.
--> your job is somewaht like source data component --> Row (Main) --> tJava
--> I know tJava we should not use for main flow however Spark dataframe processing is different than actual main row flow in other talend jobs.
--> with this solution we are able to make Spark job work but we couldn't take this solution to production as we are not convinced to use tJava like this.