Member since
08-25-2017
7
Posts
0
Kudos Received
0
Solutions
10-25-2018
03:11 PM
Hi @Matt Clarke Is there anyway to use the encrypted password or keytab instead of passing the plain password while obtaining the token? token=$(curl 'https://server:port/nifi-api/access/token' --data 'username=userid&password=xxxx')
... View more
06-21-2018
02:27 PM
Perfect. It works now. Thanks again Matt.
... View more
06-21-2018
01:51 PM
Hi @Matt Clarke I'm able to stop/start a processor that are under HTTP without any issues. However getting an error with secured nifis (i.e https UI.) I tried to get the token using below command and it's successful.
token=$(curl 'https://server:port/nifi-api/access/token' --data 'username=userid&password=xxxx') But when I tried to get the processors status using $token and --cacert option, it's giving me an error. (/tmp/G2_Root_CA.cer is the root CA certificate)
$curl 'https://<server_name>:8443/nifi-api/processors/228b783f-0164-1000-f665-9e6e093d6085' -H "Authorization: Bearer $token" --cacert /tmp/G2_Root_CA.cer curl: (60) Peer's Certificate issuer is not recognized. More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. $
... View more
06-18-2018
08:07 PM
Thank you Vinicius.
... View more
06-18-2018
08:06 PM
Thank you Matt.
... View more
06-18-2018
03:19 PM
We're looking to automate the shutdown/restart the processor instead of manually stopping through Nifi UI. We don't want to bring down everything through nifi.sh stop, instead looking to bring down a specific processor.
... View more
Labels:
- Labels:
-
Apache NiFi