Open jiacheliu3 opened 3 years ago
One easy workaround is actually:
jps
jinfo <pid>
to see all the java properties for this process@jiacheliu3 are you asking for a switch on getConf
to turn on/off loading ALLUXIO_JAVA_OPTS
?
@jiacheliu3 are you asking for a switch on
getConf
to turn on/off loadingALLUXIO_JAVA_OPTS
?
No I mean getConf
will show you alluxio-properties.site
+ ALLUXIO_JAVA_OPTS
+ ALLUXIO_USER_JAVA_OPTS
, but when you are running this command the intention may be to check the properties loaded into the worker/job worker. We currently don't have a good way (jinfo
is, maybe) to see that.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
Alluxio Version: 2.5
Describe the bug
bin/alluxio getConf
without--master
will load whatever is defined inalluxio-site.properties
andALLUXIO_JAVA_OPTS
.In K8s environment, we typically pass properties to pods with configmap, which is using environment variables like
ALLUXIO_WORKER_JAVA_OPTS
. In other words, in K8s deployment, we do NOT usealluxio-site.properties
file to pass properties (the file has nothing but default values) and define java opts likeALLUXIO_JAVA_OPTS
andALLUXIO_WORKER_JAVA_OPTS
to pass java properties to the relevant process.In this scenario,
bin/alluxio getConf
will not be able to show all the properties passed to a specific process, like master or worker. ThegetConf
command is a client process, so it will only showalluxio-site.properties
+ALLUXIO_JAVA_OPTS
+ALLUXIO_USER_JAVA_OPTS
+ (something else passed directly to the command like-D
).This makes it hard to see what are the properties applied to a certain process.
Expected behavior
getConf
should be able to show properties applied to a certain process.Urgency Describe the impact and urgency of the bug.
Additional context Add any other context about the problem here.
Edit: I originally though
ALLUXIO_JAVA_OPTS
is not loaded. But in fact it is. This should be a feature instead of a bug.