Can Sudo Logs of Nodes in an MRS Cluster Be Cleared?
Question:
Can Sudo Logs of Nodes in an MRS Cluster Be Cleared?
Answer:
The sudo log file on the nodes in the MRS cluster records the operations performed by user omm to facilitate fault locating. You can clear the file as you need.
You can delete the logs in earlier days to release storage space.
- If the log file is large, add the log file directory to /etc/logrotate.d/syslog to enable periodical deletion.
Run sed -i '3 a/var/log/sudo/sudo.log' /etc/logrotate.d/syslog.
- Set the maximum number and size of logs in /etc/logrotate.d/syslog. If the threshold is exceeded, the logs will be automatically deleted. By default, logs are aged based on the size and number of archived logs. You can use size and rotate to limit the size and number of archived logs, respectively. If required, you can also add daily/weekly/monthly to specify how often the logs are cleared.
MRS Overview FAQs
- What Is MRS Used For?
- What Types of Distributed Storage Does MRS Support?
- What Are Regions and AZs?
- Can I Change the Network Segment of Nodes in an MRS Cluster?
- Can I Downgrade the Specifications of an MRS Cluster Node?
- Does an MRS Cluster Support Hive on Spark?
- Are Hive Components of Different Versions Compatible with Each Other?
- What Are the Differences Between OBS and HDFS in Data Storage?
- How Do I Obtain the Hadoop Pressure Test Tool?
- Statement About the Public IP Addresses in the Open-Source Third-Party SDK Integrated by MRS
- Does MRS Support Running Hive on Kudu?
- What Are the Solutions for Processing 1 Billion Data Records?
- Can I Change the IP address of DBService?
- Can Sudo Logs of Nodes in an MRS Cluster Be Cleared?
- What Are the Restrictions on the Storm Log Size in an MRS 2.1.0 Cluster?
- What Access Protocols Does Kafka Support?
- What Should I Do If Error 408 Is Reported When an MRS Node Accesses OBS?
- What are the advantages of the compression ratio of zstd?
- Which Python Versions Are Supported by Spark Tasks in MRS 3.1.0 Clusters?
- How Do I Enable Different Service Programs to Use Different Yarn Queues?
- What Are the Differences and Relationships Between the MRS Management Console and MRS Manager?
- How Do I Unbind an EIP from FusionInsight Manager of an MRS Cluster?
- What are the Operating Systems of Hosts in MRS Clusters of Different Versions?
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.
Chatbotmore