nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee_Meadows <lee.mead...@ryft.com>
Subject RE: NiFi removing double quote from property
Date Tue, 23 Aug 2016 00:25:32 GMT
Thanks Mark, when I try "-w 20" the program throws and error, unknown
parameter "-w 20"

 

If I make my args delimiter null and set it to empty and remove the "" and
just make it -v -w ${ryft_width} -p ${ryft_primitave} -f ${ryft_file} -od
${ryft_outfile} -s ${ryft_search} -n ${ryft_nodes}, I see the "" around Babe
Ruth in 'execution.command.args'

 

Key: 'execution.command'

        Value: '/usr/bin/ryftprim'

Key: 'execution.command.args'

        Value: '-v -w 20 -p es -f regression/wikipedia-20150518.bin -od
br1.txt -s '(RAW_TEXT CONTAINS "Babe Ruth")' -n 4'

Key: 'execution.error'

        Value: '

*** ERROR: unknown parameter '-v -w 20 -p es -f
regression/wikipedia-20150518.bin -od br1.txt -s '(RAW_TEXT CONTAINS Babe
Ruth)' -n 4'

 

'

Key: 'execution.status'

        Value: '196'

 

 

But, I found a work around, there's a rest process that wraps our ryftprim
command, so now instead of having to have the -s with single quoted term
containing double quotes, I can just pass in -q 'Babe Ruth' and it works
fine.

 

 

---

Lee Meadows

Systems Engineer

Direct    301.560.2795

Mobile   443.375.0457



www.RYFT.com

7362 Calhoun Place, Rockville, MD 20855

 

From: Mark Payne [via Apache NiFi Developer List]
[mailto:ml-node+s39713n13095h79@n7.nabble.com] 
Sent: Monday, August 22, 2016 7:02 PM
To: Lee Meadows <lee.meadows@ryft.com>
Subject: Re: NiFi removing double quote from property

 

Hi Lee, 

I think the problem is that you are running into here is that you are mixing
spaces 
with the semicolon (argument delimiter). 

So given the config that you have here, what you really are passing is more
like 
running the command: 

/usr/bin/ryftprim -v "-w 20" "-ps es" "-f regresion/wikipedia-20150518.bin"
"-od br1.txt" "-s '(RAW_TEXT CONTAINS \"Babe Ruth\")'" "-n 4" 

My personal recommendation is always to change the delimiter to a space
instead of a semicolon. 
This results in a much more natural syntax, because spaces are what we use
on the command-line 
to separate arguments. 

Can you try changing the separator to space instead of semi-colon and then
replacing the semicolons 
in your argument list with spaces? So then your argument list would be: 

-v -w ${ryft_width} -p ${ryft_primitave} -f ${ryft_file} -od ${ryft_outfile}
-s ${ryft_search} -n ${ryft_nodes} 

Thanks 
-Mark 


> On Aug 22, 2016, at 5:06 PM, Lee_Meadows <[hidden email]> wrote: 
> 
> Sorry for delay, was traveling, thanks for responding. 
> 
> Yes, the attribute I'm trying to put the double quote does have single 
> quotes. 
> 
> Here's the example of a ryft command 
> 
> /usr/bin/ryftprim -v -w 20 -p es -f regression/wikipedia-20150518.bin -od 
> br1.txt -s '(RAW_TEXT CONTAINS "Babe Ruth")' -n 4 
> 
> So in my ExecuteStreamCommand, I have an attribute for each parameter from

> the UpdateAttribute (Or I could do it all as one, but just testing this
out 
> as proof of concept.) 
> 
> -v;-w ${ryft_width};-p ${ryft_primitave};-f ${ryft_file};-od 
> ${ryft_outfile};-s ${ryft_search};-n ${ryft_nodes} 
> 
>
<http://apache-nifi-developer-list.39713.n7.nabble.com/file/n13093/nifi_exec
ute_stream.jpg> 
> 
> 
> 
> 
> 
> -- 
> View this message in context:
http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-removing-double-q
uote-from-property-tp13069p13093.html
> Sent from the Apache NiFi Developer List mailing list archive at
Nabble.com. 





  _____  

If you reply to this email, your message will be added to the discussion
below:

http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-removing-double-q
uote-from-property-tp13069p13095.html 

To unsubscribe from NiFi removing double quote from property, click here
<http://apache-nifi-developer-list.39713.n7.nabble.com/template/NamlServlet.
jtp?macro=unsubscribe_by_code&node=13069&code=bGVlLm1lYWRvd3NAcnlmdC5jb218MT
MwNjl8NTU5MzY2NDM0> .
 
<http://apache-nifi-developer-list.39713.n7.nabble.com/template/NamlServlet.
jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.nam
l.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.
view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aem
ail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3A
email.naml> NAML 



image001.png (3K) <http://apache-nifi-developer-list.39713.n7.nabble.com/attachment/13098/0/image001.png>
smime.p7s (6K) <http://apache-nifi-developer-list.39713.n7.nabble.com/attachment/13098/1/smime.p7s>




--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-removing-double-quote-from-property-tp13069p13098.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message