Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streamparse 3.0.1 - "sparse run" error if more than one environment in config.json #304

Closed
kateabbasi opened this issue Aug 29, 2016 · 3 comments
Assignees
Labels

Comments

@kateabbasi
Copy link

In previous version of streamparse, I did not have to specify --environment when executing sparse run. However, in 3.0.1, when I do specify the environment, I get the following error:

topo$ sparse run --environment 'local'
error: Found more than one environment in config.json. When more than one environment exists, you must explicitly specify the environment name via the -e or --environment flags.

My config.json has two environments: "dev" and "local"

@dan-blanchard
Copy link
Member

This is intentional. Since we now support specifying options to your topology in many different places (config.json file, Topology.config attribute, Component.spec()'s config parameter), we need to know which environment you're using to find all your settings. Without this, running sparse run could have your topology have blank settings that it needed to function properly, if you specified them in config.json.

@kateabbasi
Copy link
Author

Thanks for the quick reply! I understand the need for config.json with sparse run. However, if more than one environment is specified in config.json, I get this error:

error: Found more than one environment in config.json. When more than one environment exists, you must explicitly specify the environment name via the -e or --environment flags.

I did explicitly specify the environment:

sparse run --environment 'local'

@dan-blanchard
Copy link
Member

Ah, sorry. Didn't see that you actually specified it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants