Skip to content

pg_id_string command is fail to execute #2

Description

@kunalv89

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions