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!

  • Big Data