0

I installed "StarCluster" using the terminal on my MacOs by following instructions from the link provided below. Now, I need to edit the configuration file to add my AWS credentials. However, I am not sure which folder "StarCluster" is installed on my hard drive. Does anyone know how to locate the folder ? I would appreciate your help.

http://star.mit.edu/cluster/docs/latest/installation.html

1 Answers1

0

According to the easy-install docs:

By default, packages are installed to the running Python installation's site-packages directory, unless you provide the -d or --install-dir option to specify an alternative directory, or specify an alternate location using distutils configuration files.

Here's a guide to finding your site-packages directory.

bwest
  • 9,182
  • 3
  • 28
  • 58
  • Thanks. I was able to locate the site-packages directory for starcluster. However, the only config file I was able to find there is "config.py" and it does not have the following part for me to enter my aws credentials: [aws info] aws_access_key_id = #your aws access key id here aws_secret_access_key = #your secret aws access key here aws_user_id = #your 12-digit aws user id here – stackuser123 Jan 29 '19 at 03:43
  • Did you run `starcluster help` to configure after install? – bwest Jan 29 '19 at 03:46
  • I did and choose the option to create a new config file, however, the only config file I see in the starcluster folder is "config.py" which is a python file. Am I suppose to change the aws credentials of this file ? – stackuser123 Jan 29 '19 at 19:20
  • The config file won't be in the `site-packages` folder, it will be in the user's home directory. Try `cd ~/.starcluster` and see what you find. You can also put the config file anywhere you'd like using `starcluster -c /path/to/starcluster/config` – bwest Jan 29 '19 at 19:25
  • I am able to view the config file from the terminal using "starcluster -c /path/to/starcluster/config listclusters", however, I don't know how to edit it to enter my aws credentials. Is there a way to do this from the terminal ? – stackuser123 Jan 30 '19 at 20:29
  • Yes, it depends on your system, but use an editor like nano or vim. Try `nano `, so if you've created the config file in your home dir, it would be `nano ~/config` – bwest Jan 30 '19 at 20:33
  • Thanks, that worked. I used vim to open and edit the config file from the terminal. – stackuser123 Jan 31 '19 at 20:26