-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Question] Why is opensearch-env different between rpm and tar builds? #2092
Comments
This kinda pose a problem when producing bundled OpenSearch RPM with these files. Then add back the sourcing and then repackage into rpm. However, in practice, even without Unless someone manually run opensearch bin without using service file for RPM, then it would pose an issue. Thanks. |
Any thoughts, @dblock ? |
@peterzhuamazon could you please point out which |
@reta I run |
I don't know the history of one vs. the other, we inherited this from the fork. |
@dblock @peterzhuamazon I will take a look shortly |
@peterzhuamazon I just did a fresh build of the distributions, there are only 2 differences in
vs
It comes from the build script [1] and @dblock is right, we just inherited it from the fork, it seems to be convention the original project has followed for years. [1] https://github.com/opensearch-project/OpenSearch/blob/main/distribution/build.gradle#L536 |
@reta I am using 1.2.0 for the build, sorry for not mentioning that. Thanks. |
@peterzhuamazon oh ... thanks for clarifying, will rebuild in a sec, the [1] #2042 |
@peterzhuamazon I built fresh 1.2.5-SHAPSHOTs
And the diff is exactly the same, I suspect the archive is not for 1.2.x (the Thank you! |
@reta I use tags/1.2.0 to build but will test again. |
Tar: diffs:
|
Weird enough the diffs are different but anyway the |
I think the The OPENSEARCH_PATH_CONF one seems needs to stay for now, as security plugin has some hard dependencies on the config folder. If the folder/link present in OPENSEARCH_HOME/config, then demo installer will use tarball mode, despite you install a version of rpm, else it will link to /etc/opensearch hardcoded. |
Yeah, the |
Seems like expected behavior at this point, close issue. |
I tried to compare rpm and tar builds from the files.
And they apparently have many differences within opensearch-env.
The rpm even hard code to source from /etc/sysconfig/opensearch for env vars
The text was updated successfully, but these errors were encountered: