/apps/hbase/data/WALs hbase users, execution time also set the user to hbase, but why it shows the root in the mission;
Here is my shell operations, want to look at user information, found that a pile is root, please master teach
[root @ hdp3 hbase] # su - hbase
Last login: Mon Mar 2 00:16:18 CST 2020
[hbase @ hdp3 ~] $w
00:18:42 up at 1:55, 2 users, and the load average: 0.25, 0.27, 0.31
The USER TTY FROM LOGIN @ IDLE JCPU PCPU WHAT
Root PTS/0 175.189.165.52 makest 1:13 m 0.01 s to 0.01 s - bash
Root PTS/1 183.95.250.16 00:05 2.00 s to 0.00 s 0.00 s - bash
[hbase @ hdp3 ~] $groups
Hadoop
[hbase @ hdp3 ~] $groups hadoop
Groups: hadoop: no to user
[hbase @ hdp3 ~] $groups hbase
Hbase: hadoop
[hbase @ hdp3 ~] $who
Root PTS/0 2020-03-01 to an (175.189.165.52)
Root PTS/1 2020-03-02 00:05 (183.95.250.16)
[hbase @ hdp3 ~] $users
Root root
[hbase @ hdp3 ~] $id
Uid=1034 (hbase) gid=1003 (hadoop) groups=1003 (hadoop)
[hbase @ hdp3 ~] $id - UN
Hbase
CodePudding user response:
Solution:Looked at the/TMP/hive under
Local folder has a problem, don't know why/TMP/hive users is 530, went to the passwd inside to see
A permissions problem:/TMP/hive was renamed gpadmin all
Delete/TMP/hive good
CodePudding user response:
Hadoop_user_name this environment variable is set to the root