Hello,

I've got this resolved. Let me explain a bit:

For some reason, when I first tested the Michal Klempa's Docker image, I issued 
the CLI like this (from my development PC):

./bin/cli.sh registry list-buckets -u http://localhost:18080

But when I deployed it inside K8s, I issued this (also from my development PC):

./bin/cli.sh registry list-buckets -u 
http://my-k8s-host:18080<http://localhost:18080>

And it didn't work. After reviewing the logs, both for the plain "local" Docker 
container, and for the K8s pod, they seemed quite the same, but for some 
reason, in K8s I had to specify also de endpoint, so this command worked:

./bin/cli.sh registry list-buckets -u 
http://my-k8s-host:18080<http://localhost:18080>/nifi-registry-api

Regarding the web interface, I removed all the security options just to begin 
with something, and it worked. I mean, don't specify an HTTPS port when 
configuring the Docker image. Now that the basic is working, I'm going to 
secure the installation.

Hope this helps someone!

Best,

________________________________
De: FABIAN Juan-antonio <[email protected]>
Enviado: viernes, 10 de enero de 2020 12:01
Para: [email protected] <[email protected]>
Asunto: NiFi Registry cannot find buckets

Hello everyone,

currently I have a NiFi Registry on an Azure VM, and I'm migrating it to 
Kubernetes.

The VM has Git Flow Provider configured, so I have a repo where my flows are 
commited, and it's working fine. My plan is to use NiFi Toolkit to 
export/import from the old registry to the new one.

Now I'm setting up the new registry on K8s. I'm using Michal Klempa's docker 
image, so the registry clones the repo on the first run. I log into that K8s 
pod and I'm able to see the cloned flows in the filesystem. The logs seems just 
fine, Nifi Registry is up and running... apparently.

However, I cannot see buckets, nor flows, when using the Toolkit. List-buckets 
shows an empty list, and when I try to create a bucket it errors with an 
exception "401 Unauthorized". From the web UI I see the registry empty, and it 
does not show the tool icon to manage the registry (like create buckets). More 
or less the CLI and the UI are showing the same: there's nothing there.

All of this is working fine in the VM, where I configured the registry 
following the docs (no Docker there, just a plain VM).

I'm new to NiFi and maybe I'm missing something, so I'd appreciate any help. I 
can provide details as per your request, right now I don't know where to find 
or what to show you.

Thanks a lot,


Juan A. Fabián Simón

Data Engineer

Alstom

Calle Martínez Villergas 49, ed. V - 28027 Madrid - Spain

Office: +34 91 384 89 00

Email: <mailto:[email protected]> 
[email protected]

www.alstom.com<http://www.alstom.com>

[cid:1f2f0f93-0360-46f6-b85e-d5ee4118db7d]           
[cid:80ac3305-086b-4a00-bc24-ee5b0b06dc23] <https://twitter.com/Alstom>    
[cid:2609440f-f274-43b6-b96c-c1deb61d5413] 
<https://www.linkedin.com/company/alstom/>    
[cid:c757ec68-13fc-4839-8dcc-0117603884b0] <https://www.facebook.com/ALSTOM/>   
 [cid:46971f0d-1762-47a8-97f2-9cf1349a6660] <https://www.instagram.com/alstom>  
  [cid:ab71b06d-8533-4fe5-9a1d-705e24f055ba] 
<[The%20URL%20sent%20was%20deleted%20due%20to%20the%20non-respect%20of%20Alstom%20policies]>



________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.
________________________________

Some URLs of this mail have been deactivated due to non-respect of Alstom s 
policies

________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.

Reply via email to