I have a property file in oozie and getting value from shell script like below:
filter_cond = record = 'n' and name = 'abc' and age = '14'
in Shell script
val cond = ${getproperty filter_cond}
It's not reading this entire value, It's read till filter_cond=record
Please help me.
You will probably need to enclose the whole value of the variable in double quotes like this:
filter_cond="record='n' and name='abc' and age='14'"
Finally i removed symbol(=) and used like command because symbol(=) is reserved key work for delimiter.
Below one works fine.
filter_cond="record like 'n' and name like 'abc' and age like '14'"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.