Retain Custom Changes in FS Scripts After reconfig cluster

Starting from ODP 3.3.6, when WebHDFS is enabled, disabling SPNEGO authentication is no longer supported. This can cause FSImage loading failures in FSAnalytics because the FSImage fetch request may fail when accessing the NameNode.

A practical workaround is to modify the FSImage fetch request URL to include the parameter:

Bash
Copy

Why This Is Needed

When WebHDFS is enabled and SPNEGO cannot be disabled, the default FSImage fetch request may fail due to authentication restrictions. By appending user.name=hdfs to the request URL, the NameNode can process the request successfully under simple authentication environments.

This enables FSImage retrieval without requiring customers to disable WebHDFS, ensuring FSAnalytics continues to function correctly.

Steps

  1. Navigate to the FSAnalytics script directory
Bash
Copy
  1. Back up the existing script
Bash
Copy
  1. Modify the FSImage fetch logic

Replace the existing block in update_fsimage.sh.

Existing block

Bash
Copy

Updated block

Bash
Copy

This modification appends the user.name=hdfs parameter to the request URI.

  1. Verify the changes inside the FSAnalytics container
Bash
Copy

Check the updated script:

Bash
Copy

Exit the container:

Bash
Copy
  1. Reload the Image

Run the following command to reload the FSImage:

Bash
Copy

If required, specify the FSAnalytics endpoint:

Bash
Copy

Result

After applying this change, FSAnalytics can successfully fetch the FSImage regardless of whether WebHDFS is enabled or disabled, ensuring stable FSAnalytics operation in ODP 3.3.6 and later environments.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard