Comments (3)
I did some basic research into how to run a process as a different user and haven't found anything that's not a hack or a convoluted workaround.
IF it could be done and I implement support for this, off the top I foresee some complications:
- before starting the ES process, the plugin should change the owner of the ES directory to the other user
- after terminating the ES process, it should change the owner back to the original user; there could be cases (eg. the plugin crashes, ES crashes, etc) when changing the owner back is not done, leaving the ES directory owned by the other user, and mvn clean would error out because of that
In summary, the implementation would be very prone to issues and I would rather not go forward with it.
Now, going back to the reason of your ask: I strongly suggest you look into your Jenkins configuration and have the Jenkins process execute as a regular user. The rule of thumb is that the root user should be used sparingly.
from elasticsearch-maven-plugin.
Thank you 👍
from elasticsearch-maven-plugin.
@oferabr #72 is a duplicate of this. I am considering implementing support for it and I would appreciate your input on it.
from elasticsearch-maven-plugin.
Related Issues (20)
- unable to download via proxy HOT 5
- No such file or directory error during parallel plugin executions in jenkins HOT 13
- How to fix elasticsearch node startup taking too long? HOT 4
- Add support for downloading from a url protected by basic authentication HOT 3
- Failed to execute goal com.github.alexcojocaru:elasticsearch-maven-plugin:6.13:runforked (start-elasticsearch) on project website: This Elasticsearch process destroyer does not support this operation HOT 2
- Failed to compile in java 11 HOT 2
- Import not found in the prebuild groovy script HOT 4
- Add elasticsearch oss for 6.8.10 HOT 4
- Cannot read the PID of the Elasticsearch process from the pid file in directory "target/elasticsearch0" HOT 2
- Cannot download and start 8.x HOT 8
- Cannot delete download directory for 8.x with plugin 6.20 HOT 1
- Unable to call POST _refresh HOT 6
- Could not resolve artifact with coordinates org.elasticsearch.distribution.zip:elasticsearch:zip:6.8.0 HOT 4
- "master not discovered yet" for 6.20+ HOT 5
- Problem running plugin on java 17 HOT 8
- Plugin seems to be there, but I get Connection refused HOT 4
- Error in opening zip file HOT 1
- Compatibility of licenses HOT 5
- Similiar Plugin for OpenSearch? HOT 2
- resolve ES for Mac M1? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-maven-plugin.