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

Use parameters given by user to launch ES in Windows Script #1414

Closed
wants to merge 3 commits into from

Conversation

dadoonet
Copy link
Member

As discussed in the mailing list : https://groups.google.com/group/elasticsearch/browse_thread/thread/86a682574b589fc7/938083b4a43b390e?hl=fr%F3%A5%81%A3b4a43b390e

Parameters given by user should work also for windows users

Hope this helps
David

@kimchy
Copy link
Member

kimchy commented Nov 16, 2011

I think this can cause problems, no? Parameters need to be escaped or something? Also, it means that always all the parameters are added to ES_PARAMS. Check the bootsap one, we actually parse based on it.

I am not terribly against this, it might hinder us in the future, just want to double check it will work well...

Don't modify ES_PARAMS
Escape parameters
@dadoonet
Copy link
Member Author

I agree. So here is a new commit for it. Is that what you were looking for ?
I tested it with ES 0.17.6 and I'm now able to run ES with :

bin\elasticsearch.bat -Des.cluster.name=MyCluster

Thanks,
David.

@dadoonet
Copy link
Member Author

Sorry ! Don't merge my pull request. There is a failure in it.
I will make more testing before you can merge it.

Sorry for that !

@dadoonet
Copy link
Member Author

It's safe now :
Tested with

bin\elasticsearch.bat -Des.cluster.name=MyCluster
bin\elasticsearch.bat -Des.cluster.name=MyCluster -server
bin\elasticsearch.bat

@kimchy
Copy link
Member

kimchy commented Nov 20, 2011

Pushed to master, thanks!

@kimchy kimchy closed this Nov 20, 2011
williamrandolph pushed a commit to williamrandolph/elasticsearch that referenced this pull request Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants