public class FlumeUtils
extends Object
| Constructor and Description |
|---|
FlumeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JavaReceiverInputDStream<SparkFlumeEvent> |
createStream(JavaStreamingContext jssc,
String hostname,
int port)
Creates a input stream from a Flume source.
|
static JavaReceiverInputDStream<SparkFlumeEvent> |
createStream(JavaStreamingContext jssc,
String hostname,
int port,
StorageLevel storageLevel)
Creates a input stream from a Flume source.
|
static ReceiverInputDStream<SparkFlumeEvent> |
createStream(StreamingContext ssc,
String hostname,
int port,
StorageLevel storageLevel)
Create a input stream from a Flume source.
|
public static ReceiverInputDStream<SparkFlumeEvent> createStream(StreamingContext ssc, String hostname, int port, StorageLevel storageLevel)
ssc - StreamingContext objecthostname - Hostname of the slave machine to which the flume data will be sentport - Port of the slave machine to which the flume data will be sentstorageLevel - Storage level to use for storing the received objectspublic static JavaReceiverInputDStream<SparkFlumeEvent> createStream(JavaStreamingContext jssc, String hostname, int port)
hostname - Hostname of the slave machine to which the flume data will be sentport - Port of the slave machine to which the flume data will be sentpublic static JavaReceiverInputDStream<SparkFlumeEvent> createStream(JavaStreamingContext jssc, String hostname, int port, StorageLevel storageLevel)
hostname - Hostname of the slave machine to which the flume data will be sentport - Port of the slave machine to which the flume data will be sentstorageLevel - Storage level to use for storing the received objects