Re: Telnet with username

2018-02-06 Thread Andre
Martin,

It seems like you got your connection directions inverted?

Are you connecting to the telnet server on port 8000 to consume the API or
are you exposing a service on port 8000 on your host and the API connects
to it?

Cheers

On Mon, Feb 5, 2018 at 7:52 AM, Martin Monsalvo  wrote:

> Hello,
> I am trying to determine how to approach this.
>
> I have a data source that broadcasts packets via telnet on a certain port.
>
> e.g
> mytelnet.mydomain.net 8000
>
> Once I connect through telnet it will prompt for my user name like so:
>
> Please enter your user name:
>
> Once you enter your username you start receiving the data one record per
> line.
>
> So far I have been able to process this data stream like so:
>
> I open a telnet connection on my machine. I route the packets to a file
> and I use the TailFile processor to read the incoming packets that get
> appended to that file.
>
> Then I process each line and send it to a Cassandra cluster.
>
> I wonder how can I directly connect to the Telnet source from Nifi, to
> avoid having to flush to a log file and using the TailFile processor as
> intermediate steps.
>
> Any ideas?
>
> Thanks in advance,
>
> Martin
>


Telnet with username

2018-02-04 Thread Martin Monsalvo
Hello,
I am trying to determine how to approach this.

I have a data source that broadcasts packets via telnet on a certain port.

e.g
mytelnet.mydomain.net 8000

Once I connect through telnet it will prompt for my user name like so:

Please enter your user name:

Once you enter your username you start receiving the data one record per
line.

So far I have been able to process this data stream like so:

I open a telnet connection on my machine. I route the packets to a file and
I use the TailFile processor to read the incoming packets that get appended
to that file.

Then I process each line and send it to a Cassandra cluster.

I wonder how can I directly connect to the Telnet source from Nifi, to
avoid having to flush to a log file and using the TailFile processor as
intermediate steps.

Any ideas?

Thanks in advance,

Martin