diff --git a/umn/source/conf.py b/umn/source/conf.py index 2b714de..0083128 100644 --- a/umn/source/conf.py +++ b/umn/source/conf.py @@ -78,7 +78,7 @@ html_theme = 'otcdocs' # further. For a list of options available for each theme, see the # documentation. html_theme_options = { - "disable_search": "True", + "disable_search": True, "site_name": "Internal Documentation Portal", "logo_url": "https://docs-int.otc-service.com", } diff --git a/umn/source/dis_sdk_usage_guide/uploading_streaming_data.rst b/umn/source/dis_sdk_usage_guide/uploading_streaming_data.rst index 19a3d0d..55e1bbf 100644 --- a/umn/source/dis_sdk_usage_guide/uploading_streaming_data.rst +++ b/umn/source/dis_sdk_usage_guide/uploading_streaming_data.rst @@ -37,7 +37,7 @@ The code for uploading streaming data is as follows: putRecordsRequestEntry.setPartitionKey(String.valueOf(ThreadLocalRandom.current().nextInt(1000000))); try { - producer.putRecordAsync(streamName, putRecordsRequestEntry, new AsyncHandler() + producer.putRecordAsync(streamName, putRecordsRequestEntry, new AsyncHandler() { @Override public void onSuccess(PutRecordsResultEntry result) diff --git a/umn/source/getting_started/step_1_creating_a_dis_stream.rst b/umn/source/getting_started/step_1_creating_a_dis_stream.rst index 6877f55..23761c9 100644 --- a/umn/source/getting_started/step_1_creating_a_dis_stream.rst +++ b/umn/source/getting_started/step_1_creating_a_dis_stream.rst @@ -29,13 +29,13 @@ Procedure +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ | Parameter | Description | Example | +========================+===================================================================================================================================================================================================================================================================================================+=======================+ - | Region | Physical location of the cloud service. You can select a different region from the drop-down list. | - | + | Region | Physical location of the cloud service. You can select a different region from the drop-down list. | ``-`` | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ | **Basic Information** | | | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ | Stream Name | Name of the DIS stream to be created. A stream name is 1 to 64 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed. | dis-Tido | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ - | Stream Type | - **Common**: Each partition supports a maximum read speed of 2 MB/s and a maximum write speed of 1 MB/s. | - | + | Stream Type | - **Common**: Each partition supports a maximum read speed of 2 MB/s and a maximum write speed of 1 MB/s. | ``-`` | | | - **Advanced**: Each partition supports a maximum read speed of 10 MB/s and a maximum write speed of 5 MB/s. | | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ | Partitions | Partitions are the base throughput unit of a DIS stream. | 5 | @@ -43,7 +43,7 @@ Procedure | | - For a common DIS stream, the value of **Partitions** is an integer from 1 to 50. A tenant can create a maximum of 50 partitions. | | | | - For an advanced DIS stream, the value of **Partitions** is an integer from 1 to 10. A tenant can create a maximum of 10 partitions. | | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ - | Partition Calculator | Calculator used to calculate the estimated number of partitions based on the information you entered. | - | + | Partition Calculator | Calculator used to calculate the estimated number of partitions based on the information you entered. | ``-`` | | | | | | | a. Click **Partition Calculator**. | | | | b. In the **Partition Calculator** dialog box, configure the **Average Record Size (KB)**, **Max. Records Written**, and **Consumer Applications** parameters. The **Estimated Partitions** field then displays the recommended number of partitions. The value of this field cannot be modified. | | @@ -70,13 +70,13 @@ Procedure | | | | | | Value range: an integer ranging from 24 to 72. | | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ - | Configure | Click **Configure now**. The **Tag** parameter is displayed. | - | + | Configure | Click **Configure now**. The **Tag** parameter is displayed. | ``-`` | | | | | | | For details about how to add a tag, see :ref:`Managing Stream Tags `. | | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ - | Skip | No advanced settings need to be configured. | - | + | Skip | No advanced settings need to be configured. | ``-`` | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ - | Tag | Identifier of the stream. Adding tags to streams can help you identify and manage your stream resources. | - | + | Tag | Identifier of the stream. Adding tags to streams can help you identify and manage your stream resources. | ``-`` | +------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------+ #. Click . The **Details** page is displayed. diff --git a/umn/source/managing_a_dump_task/creating_a_dump_task.rst b/umn/source/managing_a_dump_task/creating_a_dump_task.rst index e07207e..2b0cb5a 100644 --- a/umn/source/managing_a_dump_task/creating_a_dump_task.rst +++ b/umn/source/managing_a_dump_task/creating_a_dump_task.rst @@ -36,21 +36,21 @@ If a dump task is created for a DIS stream, data sent to the DIS stream can be a | | | | | Location to save data in the stream. | | | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | Dump Destination | **OBS**: After the streaming data is stored to DIS, it is then periodically imported to OBS. | - | + | Dump Destination | **OBS**: After the streaming data is stored to DIS, it is then periodically imported to OBS. | ``-`` | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | Task Name | Name of the dump task. The names of dump tasks created for the same stream must be unique. A task name must be unique in the stream and is 1 to 64 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed. | - | + | Task Name | Name of the dump task. The names of dump tasks created for the same stream must be unique. A task name must be unique in the stream and is 1 to 64 characters long. Only letters, digits, hyphens (-), and underscores (_) are allowed. | ``-`` | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | Dump File Format | Text | The **Text** format can be selected only when **Source Data Type** is **OBS**. | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | Dump Bucket | Name of the OBS bucket used to store data from the DIS stream. The bucket name is created when you create a bucket in OBS. | - | + | Dump Bucket | Name of the OBS bucket used to store data from the DIS stream. The bucket name is created when you create a bucket in OBS. | ``-`` | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | File Directory | Directory created in OBS to store files from the DIS stream. Different directory levels are separated by a forward slash (/). The value cannot start with a forward slash. | - | + | File Directory | Directory created in OBS to store files from the DIS stream. Different directory levels are separated by a forward slash (/). The value cannot start with a forward slash. | ``-`` | | | | | | | This directory name is 0 to 50 characters long. | | | | | | | | By default, this parameter is left unspecified. | | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | Time Directory Format | Directory format based on the time. Data will be saved to the directory in the format of time layer under the dump file directory in the OBS bucket. | - | + | Time Directory Format | Directory format based on the time. Data will be saved to the directory in the format of time layer under the dump file directory in the OBS bucket. | ``-`` | | | | | | | For example, if the time directory is accurate to day, the data save path is "bucket name/dump file directory/year/month/day". | | | | | | @@ -65,7 +65,7 @@ If a dump task is created for a DIS stream, data sent to the DIS stream can be a | | | | | | You can only select but not enter a value in this field. | | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | Record Delimiter | Delimiter used to separate different dump records. | - | + | Record Delimiter | Delimiter used to separate different dump records. | ``-`` | | | | | | | Possible values are as follows: | | | | | | @@ -77,7 +77,7 @@ If a dump task is created for a DIS stream, data sent to the DIS stream can be a | | | | | | You can only select but not enter a value in this field. | | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ - | Dump Interval (s) | User-defined interval at which data is imported from the current DIS stream into OBS. If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. | - | + | Dump Interval (s) | User-defined interval at which data is imported from the current DIS stream into OBS. If no data is pushed to the DIS stream during the current interval, no dump file package will be generated. | ``-`` | | | | | | | Value range: 30s to 900s | | | | | |