HDFS not starting : java.io.IOException: the path component: ‘/var’ is owned by a user who is not root and not you. Your effective user id is 993; the path is owned by user id 977, and its permissions are 0755. Please fix this or select a different socket path. at org.apache.hadoop.net.unix.DomainSocket.validateSocketPathSecurity0(Native Method)
Cause:
HDFS is not starting from cloudera because of permission error after installing spark. After spark is installed, the ownership of /var mountpoint change to spark:spark
[hdfs@ip-xx /]$ ls -lrt
total 32
drwxr-xr-x. 20 spark spark 278 Jun 14 2018 var
Workaround:
Change the owner to root
chown root:root /var
Check the ownership
drwxr-xr-x. 20 root root 278 Jun 14 2018 var