"well-known file is not secure" Is Displayed When the jstack Command Is Used to Check the Process Stack
Symptom
Run the jstack command to check the process stack information. The error message "well-known file is not secure" is displayed.
Cause Analysis
- The user running the jstack command is inconsistent with the user submitting the process for viewing the pid information.
- Storm uses the feature of differentiating users for implementing tasks. When the worker process is started, the process UID and GID are changed to the user submitting the task and ficommon. This way, logviewer can access logs of the worker process and only log file permission 640 is open. After the user is changed, the jstack and jmap commands fail to be executed for the worker process, because the default GID of the user is not ficommon. You need to run the ldap command to change the user GID to 9998 (ficommon).
Solution
You can use either of the following two methods to resolve the problem:
Method 1: View the process stack on the native Storm page.
- Log in to the native Storm page.
MRS Manager:
- Access MRS Manager.
- Choose Storm WebUI of Storm Summary, click any UI link to access the Storm WebUI. . In
FusionInsight Manager:
- Log in to FusionInsight Manager.
- On Manager, choose Storm WebUI page of Overview, click any UI link to open the Storm WebUI. . On the
- Select the topology to be viewed.
- Select the spout or bolt to be viewed.
- Select the log file of the node to be viewed, and then click JStack or Heap. JStack corresponds to the stack information, and Heap corresponds to the heap information.
Method 2: View the process stack by modifying user-defined parameters.
- Access the Storm parameter configuration page.
MRS Manager: Log in to MRS Manager, choose Services > Storm > Service Configuration, and select All from the Type drop-down list.
Operation on FusionInsight Manager: Log in to FusionInsight Manager and choose Cluster > Services > Yarn > Configurations > All Configurations.
- In the navigation tree on the left, choose supervisor > Customize and add the variable supervisor.run.worker.as.user=false.
- Click Save Configuration and select Restart the affected services or instances. Click OK to restart the services.
- Submit the topology again.
- Switch to the omm user on the background node and run the jps command to view the PID of the worker process.
- Run the jstack pid command to view the jstack information.
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