Full exception text:
2022-07-27 10:50:02,071 WARN [ContainerLocalizer Downloader] org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:my_user (auth:SIMPLE) cause:java.io.IOException: Resource hdfs://tmp/app/0_my_user.keytab changed on src filesystem (expected 1658134737042, was 1658221301213
This can happen when some process overwrites application files in HDFS application directory while app is running. An example of the situation:
- You start app instance_1, which stores the distribution files in the
- After a while you start the second instance_2 which stores the distribution files in the same HDFS directory (application work dir parameter in Spring Boot Yarn). Instance_1 is still working.
- When localizing resources, the specified error occurs.
To solve the problem, you need to use different paths to store the application files in HDFS.
If you still have any questions, feel free to ask me in the comments under this article, or write me on email@example.com.