Creating a Stream
Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.
The createstream_sample.py file provides a code sample. Open the createstream_sample.py file and configure parameters according to the setting of stream_type. For details about how to configure the parameters, go to Creating a Stream.
- stream_type= " " #Not specified.
If stream_type is not specified, configure the parameters of Dump_switch in the createstream_sample.py file.
- stream_type= "FILE" #Set to file.
If stream_type is set to File, configure the parameters of Dump_switch_FILE in the createstream_sample.py file.
After configuring the parameters, run the createstream_sample.py file to call createStream_test by default. If response code 201 is returned, the stream is successfully created.
Last Article: Initializing a DIS SDK Client Instance
Next Article: Creating a Dump Task
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.