Created on 08-10-2020 02:14 PM - edited on 08-14-2020 12:49 AM by VidyaSargur
Moving data from your local machine to the cloud has never been easier using NiFi site to site protocol and CDP Datahub. In this article, I will focus on how to set up a site to site communication between your local machine and CDP Cloud, without using the default Knox CDP Proxy.
This configuration assumes that you already have a local instance of NiFi (or MiNiFi) and a CDP Datahub Cluster running NiFi. If you want to learn how to use CDP Public Cloud, please visit our overview page and documentation.
This setup will be executed in 4 steps:
$ ssh -i [path_to_private_key] cloudbreak@[your_nifi_host]
$ sudo su
$ cp /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_keystore.jks /tmp
$ cp /var/lib/cloudera-scm-agent/agent-cert/cm-auto-global_truststore.jks /tmp
$ chmod a+rw /tmp/cm-auto-host_keystore.jks
$ chmod a+rw /tmp/cm-auto-global_truststore.jks
$ cd ~/Desktop
$ scp -i [path_to_private_key] cloudbreak@[your_nifi_host]:/tmp/cm-auto-host_keystore.jks cm-auto-host_keystore.jks
$ scp -i [path_to_private_key] cloudbreak@[your_nifi_host]:/tmp/cm-auto-global_truststore.jks cm-auto-global_truststore.jks
nifi.security.keystore=/Users/pvidal/Desktop/cm-auto-host_keystore.jks
nifi.security.keystoreType=JKS
nifi.security.keystorePasswd=[keystore_pw]
nifi.security.keyPasswd=[keystore_pw]
nifi.security.truststore=/Users/pvidal/Desktop/cm-auto-global_truststore.jks
nifi.security.truststoreType=JKS
nifi.security.truststorePasswd=[truststore_pw]
Note: To know the passwords of these stores, please connect with your Cloudera team.nifi restart