简体   繁体   English

Oozie 属性文件值未从 spark 读取

[英]Oozie property file value not reading from spark

I have a property file in oozie and getting value from shell script like below:我在 oozie 中有一个属性文件,并从 shell 脚本中获取值,如下所示:

filter_cond = record = 'n' and name = 'abc' and  age = '14'

in Shell script在 Shell 脚本中

 val cond = ${getproperty filter_cond} 

It's not reading this entire value, It's read till filter_cond=record它不是读取整个值,而是读取到 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'" filter_cond="记录像'n'和名字像'abc'和年龄像'14'"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM