public class SocketTextStreamWordCount extends Object
To start an example socket text stream on your local machine run netcat from a command line, where the parameter specifies the port number:
nc -lk 9999
Usage:
SocketTextStreamWordCount --hostname <name> --port <n> [--output <path>]
This example shows how to:
- use StreamExecutionEnvironment.socketTextStream - write a simple Flink Streaming program in scala. - write and use user-defined functions.
Constructor and Description |
---|
SocketTextStreamWordCount() |
public static void main(String[] args)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.