keyValueSystem.createStore results a directory whose user & group is empty and AccessControlExceptio

25 views
Skip to first unread message

Yuexiang Zhang

unread,
Feb 25, 2017, 9:55:31 AM2/25/17
to Alluxio Users
Hi,

My Alluxio version is 1.4.0

When the client runs as a non-root user, e.g. user tom,  keyValueSystem.createStore will result a store directory whose user & group are empty, e.g.

# bin/alluxio fs ls /kvs
drwxr-xr-x                                   0.00B     02-25-2017 19:25:17:631  Directory      /kvs/store1

Then AccessControlException will happen when we write something to it, e.g.  writer.put("a", "aaa"); we 'll get an AccessControlException

alluxio.exception.AccessControlException: Permission denied: user=tom, access=-w-, path=/kvs/store1/part-00000: failed at store1, inode owner=, inode group=, inode mode=rwxr-xr-x
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at alluxio.exception.AlluxioException.fromThrift(AlluxioException.java:92)
at alluxio.AbstractClient.retryRPC(AbstractClient.java:353)
at alluxio.client.file.FileSystemMasterClient.createFile(FileSystemMasterClient.java:147)
at alluxio.client.file.BaseFileSystem.createFile(BaseFileSystem.java:101)
at alluxio.client.keyvalue.KeyValuePartitionWriter$Factory.create(KeyValuePartitionWriter.java:55)
at alluxio.client.keyvalue.BaseKeyValueStoreWriter.put(BaseKeyValueStoreWriter.java:125)


Thanks.

Bin Fan

unread,
Feb 26, 2017, 12:55:37 AM2/26/17
to Alluxio Users
Thanks Yuexiang,

Alluxio KV is currently an experimental feature.
This looks like a bug to me.
Are you running this for fun or will this block you?
Also,  you could create a JIRA ticket on our JIRA system https://alluxio.atlassian.net/ to track this if this is important to you


- Bin

Yuexiang Zhang

unread,
Feb 26, 2017, 6:19:11 AM2/26/17
to Alluxio Users
Thanks Bin,

I just disabled authorization by set alluxio.security.authorization.permission.enabled=false and it's OK now.
Reply all
Reply to author
Forward
0 new messages