Closed xiandong79 closed 6 years ago
python: command not found
Looks like you are using an AMI that does not have Python, which Flintrock requires. To work around this, you can use the --ec2-user-data
option to install Python on instance launch. You can read more about this EC2 feature here.
Unless you are comfortable navigating these types of issues, I suggest sticking to the default Amazon Linux AMI. It will work out of the box.
So why not check installation of python
before installing spark
on the instance.
If not installed, then install it first.
That's a good idea, and Flintrock already does this for things that are not commonly available by default like Java 8. But Python is available by default on almost every major Linux distribution I can think of. Flintrock also depends on yum, Bash, curl, and perhaps a few other commonly available tools.
If someone wants to use a barebones AMI that doesn't include these basic tools, I think that's fine, but it should probably be on them to install the missing tools themselves.
Looking at the documentation for this BigDL AMI though, I see that it's already supposed to include Python. So perhaps Python is indeed available, but under a different name like python3
instead of python
. If that's the case, simply creating an alias
via the --ec2-user-data
script would fix the issue.
All that said, perhaps Flintrock should check for these remote dependencies explicitly, similar to how it does for local dependencies.
I would like to run BigDL on spark cluster https://bigdl-project.github.io/master/#ProgrammingGuide/run-on-ec2/. The AMI is
ERROR info is:
My config is