Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ MapReduce Service/ User Guide (Kuala Lumpur Region)/ FAQs/ Web Page Access/ How Do I Change the Session Timeout Duration for an Open Source Component Web UI?

How Do I Change the Session Timeout Duration for an Open Source Component Web UI?

Updated on 2022-12-14 GMT+08:00

You need to set a proper web session timeout duration for security purposes. To change the session timeout duration, do as follows:

Checking Whether the Cluster Supports Session Timeout Duration Adjustment

  • For MRS cluster versions earlier than 3.x:
    1. On the cluster details page, choose Components > meta > Service Configuration.
    2. Switch Basic to All, and search for the http.server.session.timeout.secs.

      If http.server.session.timeout.secs does not exist, the cluster does not support change of the session timeout duration. If the parameter exists, perform the following steps to modify it.

  • MRS 3.x and later: Log in to FusionInsight Manager and choose Cluster > Services > meta. On the displayed page, click Configurations and select All Configurations. Search for the http.server.session.timeout.secs configuration item. If this configuration item exists, perform the following steps to modify it. If the configuration item does not exist, the version does not support dynamic adjustment of the session duration.

You are advised to set all session timeout durations to the same value. Otherwise, the settings of some parameters may not take effect due to value conflict.

Modifying the Timeout Duration on Manager and the Authentication Center Page

For clusters of versions earlier than MRS 3.x:

  1. Log in to each master node in the cluster and perform 2 to 4.
  2. Change the value of <session-timeout>20</session-timeout> in the /opt/Bigdata/apache-tomcat-7.0.78/webapps/cas/WEB-INF/web.xml file. <session-timeout>20</session-timeout> indicates the session timeout duration, in minutes. Change it based on service requirements. The maximum value is 480 minutes.
  3. Change the value of <session-timeout>20</session-timeout> in the /opt/Bigdata/apache-tomcat-7.0.78/webapps/web/WEB-INF/web.xml file. <session-timeout>20</session-timeout> indicates the session timeout duration, in minutes. Change it based on service requirements. The maximum value is 480 minutes.
  4. Change the values of p:maxTimeToLiveInSeconds="${tgt.maxTimeToLiveInSeconds:1200}" and p:timeToKillInSeconds="${tgt.timeToKillInSeconds:1200}" in the /opt/Bigdata/apache-tomcat-7.0.78/webapps/cas/WEB-INF/spring-configuration/ticketExpirationPolicies.xml file. The maximum value is 28,800 seconds.
  5. Restart the Tomcat node on the active master node.
    1. On the active master node, run the netstat -anp |grep 28443 |grep LISTEN | awk '{print $7}' command as user omm to query the Tomcat process ID.
    2. Run the kill -9 {pid} command, in which {pid} indicates the Tomcat process ID obtained in 5.a.
    3. Wait until the process automatically restarts. You can run the netstat -anp |grep 28443 |grep LISTEN command to check whether the process is successfully restarted. If the process can be queried, the process is successfully restarted. If the process cannot be queried, query the process again later.

For clusters of MRS 3.x or later

  1. Log in to each master node in the cluster and perform 2 to 3 on each master node.
  2. Change the value of <session-timeout>20</session-timeout> in the /opt/Bigdata/om-server_xxx/apache-tomcat-xxx/webapps/web/WEB-INF/web.xml file. <session-timeout>20</session-timeout> indicates the session timeout duration, in minutes. Change it based on service requirements. The maximum value is 480 minutes.
  3. Add ticket.tgt.timeToKillInSeconds=28800 to the /opt/Bigdata/om-server_xxx/apache-tomcat-8.5.63/webapps/cas/WEB-INF/classes/config/application.properties file. ticket.tgt.timeToKillInSeconds indicates the validity period of the authentication center, in seconds. Change it based on service requirements. The maximum value is 28,800 seconds.
  4. Restart the Tomcat node on the active master node.
    1. On the active master node, run the netstat -anp |grep 28443 |grep LISTEN | awk '{print $7}' command as user omm to query the Tomcat process ID.
    2. Run the kill -9 {pid} command, in which {pid} indicates the Tomcat process ID obtained in 4.a.
    3. Wait until the process automatically restarts.

      You can run the netstat -anp |grep 28443 |grep LISTEN command to check whether the process is successfully restarted. If the process is displayed, the process is successfully restarted. If the process is not displayed, query the process again later.

Modifying the Timeout Duration for an Open-Source Component Web UI

  1. Access the All Configurations page.
    • For MRS cluster versions earlier than MRS 3.x:

      On the cluster details page, choose Components > Meta > Service Configuration.

    • For MRS cluster version 3.x or later:

      Log in to FusionInsight Manager and choose Cluster > Services > meta. On the displayed page, click Configurations and select All Configurations.

  2. Change the value of http.server.session.timeout.secs under meta as required. The unit is second.
  3. Save the settings, deselect Restart the affected services or instances, and click OK.

    You are advised to perform the restart during off-peak hours.

  4. (Optional) If you need to use the Spark web UI, search for spark.session.maxAge on the All Configurations page of Spark and change the value (in seconds).

    Save the settings, deselect Restart the affected services or instances, and click OK.

  5. Restart the meta service and components on web UI, or restart the cluster during off-peak hours.

    To prevent service interruption, restart the service during off-peak hours or perform a rolling restart.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback