Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
TomG1
Creator
Creator

globalMap.get() is not working

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.

 

0683p000009LuqS.jpg

Labels (4)
11 Replies
Anonymous
Not applicable

I need a globalmap or an alternative to this in spark jobs. Any ideas?

Anil3
Contributor
Contributor

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.