public class SocketTextStreamWordCount extends Object
To start an example socket text stream on your local machine run netcat from
a command line: nc -lk 9999
, where the parameter specifies the
port number.
Usage:
SocketTextStreamWordCount --hostname <name> --port <n> --output <path>
This example shows how to:
Constructor and Description |
---|
SocketTextStreamWordCount() |
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.