Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

I am a newbie in Nifi. I am using Nifi in Docker. How to configure GetHTTP processor in Nifi so that it can access the URL given in the URL value of that processor.

avatar
Explorer
 
1 ACCEPTED SOLUTION

avatar
Rising Star

Hi @Akananda Singhania,

I suspect your network configuration on your Docker Engine host is incorrect. Running the image you listed works as anticipated in a few of the environments available to me.

Let's try to confirm this suspicion by running the following:

docker run busybox ping -c 1 files.grouplens.org

You should receive output similar to the following. If not, the configured DNS server is not appropriately routing to external sites.

PING files.grouplens.org (128.101.34.235): 56 data bytes
64 bytes from 128.101.34.235: seq=0 ttl=37 time=39.263 ms


--- files.grouplens.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 39.263/39.263/39.263 ms

Could you provide more details about your environment in which you are running Docker?

Of interest would be the output of

cat /etc/resolv.conf

Another option is to try explicitly specifying a DNS server such as those that Google makes available via a command such as:

docker run --dns 8.8.8.8 -d -p 8080:8080 apache/nifi

View solution in original post

2 REPLIES 2

avatar
Guru

Hi @Akananda Singhania

Let me know if you have more specific questions, but here is a quick example of GetHTTP getting movie data from a web site:

62855-gethttp-example.png

Besides URL and Filename, all properties are default values.

avatar
Rising Star

Hi @Akananda Singhania,

I suspect your network configuration on your Docker Engine host is incorrect. Running the image you listed works as anticipated in a few of the environments available to me.

Let's try to confirm this suspicion by running the following:

docker run busybox ping -c 1 files.grouplens.org

You should receive output similar to the following. If not, the configured DNS server is not appropriately routing to external sites.

PING files.grouplens.org (128.101.34.235): 56 data bytes
64 bytes from 128.101.34.235: seq=0 ttl=37 time=39.263 ms


--- files.grouplens.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 39.263/39.263/39.263 ms

Could you provide more details about your environment in which you are running Docker?

Of interest would be the output of

cat /etc/resolv.conf

Another option is to try explicitly specifying a DNS server such as those that Google makes available via a command such as:

docker run --dns 8.8.8.8 -d -p 8080:8080 apache/nifi