You can set Java -D options in the accumulo-env.sh script. On Fri, Jan 21, 2022 at 8:48 AM Ligade, Shailesh [USA] < ligade_shail...@bah.com> wrote:
> uhmm I didn't see any -D option on shell > > if I try > > bin/accumulo -Dlog4j.configuration=/tmp/log4j.properties shell - throws > error as it is not a classpath > > and if I give -D after shell, it says shell do not have that option > > What is the correct way? > > -S > ------------------------------ > *From:* dev1 <d...@etcoleman.com> > *Sent:* Friday, January 21, 2022 8:31 AM > *To:* 'user@accumulo.apache.org' <user@accumulo.apache.org> > *Subject:* [External] RE: issue with OS user using shell > > > Did you try to pass a log4j configuration using -D option on the command > line? > > > > Ed Coleman > > > > *From:* Ligade, Shailesh [USA] <ligade_shail...@bah.com> > *Sent:* Friday, January 21, 2022 8:19 AM > *To:* user@accumulo.apache.org > *Subject:* issue with OS user using shell > > > > Heo, > > > > When a regular OS user use shell command, looks like that OS user needs > access to accumulo log directory. Othewise it throws FileNotFound exception > for the log file (tserver/monitor/master/gc/tracer - all the log files) > > > > if i user OS root user or OS accumulo user (user who runs accumulo) there > is no issue with shell command. > > > > I obviously don't want to open log directory for all OS users or turn off > shell logging. Is there a way around it? I didn't see shell command option > for accepting any log4j.conf so that just for shell I can use a different > file.. > > > > > > Thanks > > > > -S >