-
Notifications
You must be signed in to change notification settings - Fork 24.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
Incorrect source in elasticsearch-sql-cli #47803
Comments
Pinging @elastic/es-search (:Search/SQL) |
If it's called inside "home" folder (that is, if it was installed from deb/rpm packages, when called inside "/usr/share/elasticsearch" folder), it works by just writing ./bin/elasticsearch-sql-cli |
I am getting below error during run ./bin/elasticsearch-sql-cli WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. |
@annirathore you will find usage help on the discussion forum: discuss.elastic.co. |
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
The sql-cli script sources x-pack-env, but it does so assuming the current directory is ES_HOME. This commit alters the source command to use ES_HOME which is available after running elasticsearch-env. closes elastic#47803
The sql-cli script sources x-pack-env, but it does so assuming the current directory is ES_HOME. This commit alters the source command to use ES_HOME which is available after running elasticsearch-env. closes #47803
The sql-cli script sources x-pack-env, but it does so assuming the current directory is ES_HOME. This commit alters the source command to use ES_HOME which is available after running elasticsearch-env. closes #47803
One can't start the tool from any working directory.
Here's a reproduction
The reason for this is that
source "
dirname "$0""/elasticsearch-env
changes the working directory to$ES_HOME
so I think the second source should just beWould be nice to add some packaging tests to
qa/os
to make sure the tool can be called from different places.The text was updated successfully, but these errors were encountered: