gitosis 干扰 Hadoop

gitosis 干扰 Hadoop

我从没想过我会写这样的标题,但这是真的

我已经安装了 gitosis 和 hadoop。

> sudo /usr/lib/hadoop/bin/start-all.sh
  Enter passphrase for key '/root/.ssh/id_rsa': 
  root@localhost's password: 
  localhost: DEBUG:gitosis.serve.main:Got command 'cd /usr/lib/hadoop ; 
             /usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf 
             start datanode'
  localhost: ERROR:gitosis.serve.main:Unknown command denied

WTF?! 为什么这些命令突然被传递给 gitosis?

谢谢

答案1

事实证明,/root/.ssh/authorized_keys 有由 gitosis 生成的以下行:

### autogenerated by gitosis, DO NOT EDIT
command="gitosis-serve root@...",no-port-forwarding,...

删除 gitosis,删除此行,一切正常

相关内容