hive.security.authorization.sqlstd.confwhitelist=hive.exec.pre.hooks
hive.exec.pre.hooks=org.apache.hadoop.hive.ql.hooks.UpdateInputAccessTimeHook$PreExec
2.重启hive即可
hive表开启lastAccessTime参数
原文:https://blog.51cto.com/xiaolanlan/2414388