InsightByte / ApacheNifi

Youtube Apache NiFi 2022 Series resources
66 stars 51 forks source link

pg_id_string command is fail to execute #2

Open kunalv89 opened 1 year ago

kunalv89 commented 1 year ago

Hi, I have tried to use this but failed at 7th command, getting the error as below.

jq: error: syntax error, unexpected $end, expecting QQSTRING_TEXT or QQSTRING_INTERP_START or QQSTRING_END (Unix shell quoting issues?) at , line 1: .resources[] | select(.name| contains ("NiFi jq: 1 compile error

command

export pg_id_string=echo $resources| jq -c '.resources[] | select(.name| contains ("'$pg_name'")) | .identifier' | grep -v 'data|policies|operation' | grep'process-groups' | tr -d '"'``

Below are the troubleshooting steps i have done from previous issue/query.

Query hit

export resources=curl -XGET http://$nifi_host:$nifi_port/nifi-api/resources

Response

echo $resources P

Please suggest. Note i have the username and password for login into nifi gui.

kunalv89 commented 1 year ago

@InsightByte can you please here

InsightByte commented 1 year ago

Hi, what is the OS you running on

InsightByte commented 1 year ago

It seems that the resource endpoint is not returning

sralla-eq commented 1 year ago

@kunalv89 did you find a solution?