Esta página ainda não está disponível no idioma selecionado. Estamos trabalhando para adicionar mais opções de idiomas. Agradecemos sua compreensão.
- What's New
- Service Overview
- Getting Started
-
User Guide
- IAM Permissions Management
- Getting Started
- Managing DIS Streams
-
Using DIS
- Checking and Configuring DNS Information
- Uploading Data by Using Agent
- Using DIS Flume Plugin to Upload and Download Data
- Using a DIS Logstash Plugin to Upload and Download Data
- Using Kafka Adapter to Upload and Download Data
- Using SparkStreaming SDK to Download Data
- Using a DIS Flink Connector to Upload and Download Data
- Managing a Dump Task
- Managing Enterprise Projects
- Notifying Events
- Monitoring
- Best Practices
-
SDK Reference
- Overview
- Related Resources
- Enabling DIS
- Creating a DIS Stream
- Obtaining Authentication Information
-
Getting Started with SDK
-
Using the Java SDK
- Preparing the Environment
- Configuring a Sample Project
- Initializing a DIS SDK Client Instance
- Creating a Stream
- Creating a Dump Task
- Updating a Dump Task
- Deleting a Dump Task
- Querying a Dump Task List
- Querying Dump Details
- Deleting a Stream
- Querying a Stream List
- Querying Stream Details
- Downloading Streaming Data
- Uploading Streaming Data
- Obtaining the Data Cursor
- Creating an Application
- Deleting an Application
- Adding a Checkpoint
- Querying a Checkpoint
- Changing Partition Quantity
- Using Kafka Adapter to Upload and Download Data
-
Using the Python SDK
- Preparing the Installation Environment
- Configuring a Sample Project
- Initializing a DIS SDK Client Instance
- Creating a Stream
- Creating a Dump Task
- Deleting a Stream
- Deleting a Dump Task
- Querying a Stream List
- Querying a Dump Task List
- Querying Stream Details
- Querying Dump Details
- Uploading Streaming Data in JSON Format
- Uploading Streaming Data in Protobuf Format
- Downloading Streaming Data
- Creating an Application
- Deleting an Application
- Viewing Application Details
- Querying an Application List
- Adding a Checkpoint
- Querying a Checkpoint
- Changing Partition Quantity
- Obtaining a Data Cursor
-
Using the Java SDK
- Error Codes
- Change History
- API Reference
-
FAQs
-
General Questions
- What Is DIS?
- What Is a Partition?
- What Can I Do with DIS?
- What Advantages Does DIS Have?
- Which Modules Do DIS Have?
- How Do I Create a DIS Stream?
- What Is the Difference Between Storing Data into DIS and Dumping Data Elsewhere?
- How Do I Check Software Package Integrity?
- How Do I Send and Retrieve Data Using DIS?
- What Is Data Control?
- Dump Questions
- DIS Agent Questions
-
General Questions
- General Reference
Copied.
Testing DIS Agent
Testing DIS Agent on a Linux Server
- Start PuTTY and log in to the server on which logs reside.
- Run the following command to navigate to the directory in which the DIS Agent stores logs:
cd /opt/dis-agent-X.X.X/logs
- Run the following command to view logs:
tail -100f dis-agent.log
- If information similar to the following appears, the DIS Agent is running properly.
Agent: Startup completed in xx ms
- If any of the following information appears, the DIS Agent is not running properly and you need to troubleshoot the DIS Agent:
- HttpClientErrorException: 400 Bad Request
Possible cause: The value of DISStream or projectId in Configuring DIS Agent is incorrect.
Solution: Stop the DIS Agent process and correct the parameter values.
- HttpClientErrorException: 403 Forbidden
Possible cause: The DIS gateway blacklists the IP address of the Linux server on which the DIS Agent is installed and consequently the request to view logs is blocked. Usually, the Linux server IP address is blacklisted because a DIS API is repeatedly called using incorrect configuration.
Solution: Stop the DIS Agent process, modify the agent.yml file (see Configuring DIS Agent). Restart the DIS Agent process 30 minutes after it stops.
- UnknownHttpStatusCodeException: Unknown status code [441]
Possible cause: AK/SK configuration is incorrect.
Solution: Stop the DIS Agent process and correct the AK/SK configuration.
- ConnectTimeoutException: Connect to DOMAIN[DOMAIN/IP] failed: connect timed out
Possible cause: The connection between the Linux server on which the DIS Agent is installed and the DIS gateway times out.
Solution: Ensure that the Linux server on which the DIS Agent is installed can connect to the Internet.
- HttpClientErrorException: 400 Bad Request
- If information similar to the following appears, the DIS Agent is running properly.
- Check whether the DIS Agent can upload logs.
- If the monitoring directory configured in agent.yml contains matched files, logs will record the information similar to the following, indicating that [N1 records (B1 bytes)/N2 files (B2 bytes)] are parsed and [N3 records/N4 files] are successfully uploaded.
Agent: Progress: [N1 records (B1 bytes) / N2 files (B2 bytes)] parsed, and [N3 records / N4 files] sent successfully to destinations. Uptime: 30146ms
- If no files match the filePattern, run the following command to generate log files required for testing log uploading:
echo "`date` Hello world." >> /tmp/test.log
- If the monitoring directory configured in agent.yml contains matched files, logs will record the information similar to the following, indicating that [N1 records (B1 bytes)/N2 files (B2 bytes)] are parsed and [N3 records/N4 files] are successfully uploaded.
- Log in to the DIS console and view monitoring data of the DIS stream specified by the DISStream or CustomFileStream parameter in Configuring DIS Agent. If the stream monitoring data shows that data has been uploaded to the DIS stream, the DIS Agent has been successfully installed.
Testing DIS Agent on a Windows Server
- Use a file manager to navigate to the logs directory.
- Open the dis-agent.log file using an editor. View logs in the file.
- If information similar to the following appears, the DIS Agent is running properly.
Agent: Startup completed in xx ms
- If any of the following information appears, the DIS Agent is not running properly and you need to troubleshoot the DIS Agent:
- HttpClientErrorException: 400 Bad Request
Possible cause: The value of DISStream or projectId in Configuring DIS Agent is incorrect.
Solution: Stop the DIS Agent process and correct the parameter values.
- HttpClientErrorException: 403 Forbidden
Possible cause: The DIS gateway blacklists the IP address of the Linux server on which the DIS Agent is installed and consequently the request to view logs is blocked. Usually, the Linux server IP address is blacklisted because a DIS API is repeatedly called using incorrect configuration.
Solution: Stop the DIS Agent process, modify the agent.yml file (see Configuring DIS Agent). Restart the DIS Agent process 30 minutes after it stops.
- UnknownHttpStatusCodeException: Unknown status code [441]
Possible cause: AK/SK configuration is incorrect.
Solution: Stop the DIS Agent process and correct the AK/SK configuration.
- ConnectTimeoutException: Connect to DOMAIN[DOMAIN/IP] failed: connect timed out
Possible cause: The connection between the Linux server on which the DIS Agent is installed and the DIS gateway times out.
Solution: Ensure that the Linux server on which the DIS Agent is installed can connect to the Internet.
- HttpClientErrorException: 400 Bad Request
- If information similar to the following appears, the DIS Agent is running properly.
- Check whether the DIS Agent can upload logs.
- If the monitoring directory configured in agent.yml contains matched files, logs will record the information similar to the following, indicating that [N1 records (B1 bytes)/N2 files (B2 bytes)] are parsed and [N3 records/N4 files] are successfully uploaded.
Agent: Progress: [N1 records (B1 bytes) / N2 files (B2 bytes)] parsed, and [N3 records / N4 files] sent successfully to destinations. Uptime: 30146ms
- If no files match the filePattern, run the following command to generate log files required for testing log uploading:
echo %date%time%Hello world. >> C:\test.log
- If the monitoring directory configured in agent.yml contains matched files, logs will record the information similar to the following, indicating that [N1 records (B1 bytes)/N2 files (B2 bytes)] are parsed and [N3 records/N4 files] are successfully uploaded.
- Log in to the DIS console and view monitoring data of the DIS stream specified by the DISStream or CustomFileStream parameter in Configuring DIS Agent. If the stream monitoring data shows that data has been uploaded to the DIS stream, the DIS Agent has been successfully installed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot