Hi Tanzir, Thanks for letting us know that you have solved the issue. Happy Hadooping! Ted. ...
Thanks for letting us know that you have solved the issue.
I'm here again!!
I'm trying to execute a shell script through Oozie(sandbox) but I'm having some issues. I have a property file like this (import.properties):
The idea is, in every single execution the startIndex value will be updated by the chunk size. So if I execute it, it should have
I have tested the script separately and it works fine. Here are my other related files.
SCRIPT=$(readlink -f $file)
newStartIndex=`expr $chunkSize + $startIndex`
sed -i "s|$oldStartIndexStr|$newStartIndexStr|g" $file
And I put all these files inside my HDFS working directory:
[ambari_qa@sandbox coordinator]$ hadoop fs -lsr /user/ambari_qa/wfe/coordinator
-rw-rw-rw- 1 ambari_qa hdfs 32 2013-05-09 00:12 /user/ambari_qa/wfe/coordinator/import.properties
-rw-rw-rw- 1 ambari_qa hdfs 533 2013-05-09 01:19 /user/ambari_qa/wfe/coordinator/script.sh
-rw------- 1 ambari_qa hdfs 852 2013-05-09 00:50 /user/ambari_qa/wfe/coordinator/workflow.xml
I was expecting that the import.properties file will be changed after each execution. But I see it's not changing even though the oozie job is successful. What I need to do so that it effects the working directory of HDFS? Thanks in advance.