解决ubuntu环境下启动Presto报错:/usr/bin/env: 'python': No such file or directory

配置项和这位一样:

Presto调用Hive启动时显示报错/usr/bin/env: 'python': No such file or directory

注意presto/bin/launcher的这个句子:

exec "$(dirname "$0")/launcher.py" "$@"

这句话实际上就等于./launcher.py 参数

测试:

./launcher.py 
/usr/bin/env: ‘python’: No such file or directory

那么出现问题的原因就很简单了,在与你的python解释器的环境变量有问题

再测试:

python3.5 launcher.py start
Started as 3286

声明解释器就可以成功运行,那么只要修复python解释器的环境变量就可以了:

/usr/bin/env: ‘python’: No such file or directory

你可能感兴趣的:(Hadoop)