Shweta,
Note the difference between setauths command and addauths command.
setauths sets a users authorization to the list that you provide, while
addauths command appends a new authorization to a user's existing list.
It is expected that setauths overrides the existing list of
authorizations for a user.
Also, what version are you using? The Shell.audit messages being
displayed in the shell look annoying. Do you want them on by default?
You can turn them off by changing $ACCUMULO_CONF_DIR/log4j.properties:
In 1.5:
log4j.logger.org.apache.accumulo.core.util.shell.Shell.audit=WARN,A1
In 1.6 and greater:
log4j.logger.org.apache.accumulo.shell.Shell.audit=WARN,A1
shweta.agrawal wrote:
Hi,
I have given user authorisations but when I am scanning data of user it
is giving no results. And when checking the authorisations through
getauths it is showing the authorisations.
And also when I am ingesting data with new authorisations the older
authorisations are overrided by new one.
Still unable to scan data. And it accepts redundant authorisations also.
root@orkash Projects> scan
2015-09-14 15:28:06,156 [Shell.audit] INFO : root@orkash Projects> scan
root@orkash Projects> get
getauths getgroups getsplits
root@orkash Projects> getauths
2015-09-14 15:32:44,823 [Shell.audit] INFO : root@orkash Projects> getauths
PID123,PROTECTED,modi_1234,modi_1234,PROTECTED,modi_1234,modi_1234,123,metadata_espolit
ECTED,metadata_espolitics_1234,123,metadata_espolitics_1234,123,modi_1234,modi_1234,123
root@orkash Projects> scan
2015-09-14 15:33:03,712 [Shell.audit] INFO : root@orkash Projects> scan
root@orkash Projects> setauths -u root -s PID123
2015-09-14 15:33:19,543 [Shell.audit] INFO : root@orkash Projects>
setauths -u root -s PID123
root@orkash Projects> scan
2015-09-14 15:33:21,822 [Shell.audit] INFO : root@orkash Projects> scan
123 Project:ClientId [PID123] CL111
123 Project:ClientName [PID123] Barack_Obama
123 Project:ProjectId [PID123] 123
123 Project:ProjectName [PID123] Project_US
123 Project:Project_Status [PID123] Open
123 Project:UserId [PID123] US111
123 Project:UserName [PID123] Barack_Obama
This is the process which I used.
So please provide solutions to this problem
Regards
Shweta