All,
Looking at passing a variable from shell action to oozie shell. I run commands like in my script:
#!/bin/sh
evalDate="hive -e 'set hive.execution.engine=mr; select max(cast(create_date as int)) from db.table;'"
evalPartition=$(eval $evalBaais)
echo "evaldate=$evalPartition"
The trick is that it is a shell hive team.
Then I run this to get it in oozie:
${wf:actionData('getPartitions')['evaldate']}
But he confuses every time! I can run these commands in my shell and it seems to work, but no. Similarly, if I run commands in other cells in the cluster, they also work fine. Any ideas?
source
share