Two Stars

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!

1 REPLY
Moderator

Re: Pass context variable to tSSH to execute hive script

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

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.