1.切换到root用户 su root 2.修改/etc/sudoers vim /etc/sudoers 在 root ALL=(ALL) ALL追加 spark ALL=(ALL) ALL 3.保存关闭 重试之前被拒绝的操作