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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pass context variable to tSSH to execute hive script

Hi,

 

I'm trying to pass context variable to tSSH to execute hive script but failed. It was not able to substitute the value from context variable. Can anyone help me?

 

Working:

"hive -d tablename=pbp -f hdfs://shtbdthdpd01:8020/user/bdhdev/script/L2_test.sql"

 

Not working:

"hive -d tablename="+context.tablename+" -f hdfs://shtbdthdpd:8020/user/bdhdev/script/L2_test.sql"

 

Thank You!

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello,

Is there any synax error in your java code? You can check your "Code" tab in your job. There would be your compile error highlighted in red line.

Best regards

Sabrina