hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wujinhu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-15943) AliyunOSS: add missing owner & group attributes for oss FileStatus
Date Mon, 19 Nov 2018 08:22:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-15943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

wujinhu updated HADOOP-15943:
-----------------------------
    Description: 
Owner & group attributes are missing when you list oss objects via hadoop command:
{code:java}
Found 6 items
drwxrwxrwx - 0 2018-08-01 21:37 /1024
drwxrwxrwx - 0 2018-10-30 11:07 /50
-rw-rw-rw- 1 94070 2018-11-08 21:48 /a
-rw-rw-rw- 1 2441079322 2018-10-31 10:14 /lineitem.csv
drwxrwxrwx - 0 1970-01-01 08:00 /tmp
drwxrwxrwx - 0 1970-01-01 08:00 /user
{code}
 

The result should like below(hadoop fs -ls hdfs://master:8020/):
{code:java}
Found 5 items
drwxr-xr-x - hbase hbase 0 2018-11-18 17:31 hdfs://master:8020/hbase
drwxrwxrwt - hdfs supergroup 0 2018-10-30 11:07 hdfs://master:8020/tmp
drwxr-xr-x - hdfs supergroup 0 2018-10-30 10:39 hdfs://master:8020/user
{code}
However, oss objects do not have owner & group attributes like hadoop files,  so we
assume both owner & group are the current user at the time the FS was instantiated.

  was:
Owner & group attributes are missing when you list oss objects via hadoop command:

 
{code:java}
Found 6 items
drwxrwxrwx - 0 2018-08-01 21:37 /1024
drwxrwxrwx - 0 2018-10-30 11:07 /50
-rw-rw-rw- 1 94070 2018-11-08 21:48 /a
-rw-rw-rw- 1 2441079322 2018-10-31 10:14 /lineitem.csv
drwxrwxrwx - 0 1970-01-01 08:00 /tmp
drwxrwxrwx - 0 1970-01-01 08:00 /user
{code}
 

 

The result should like below(hadoop fs -ls hdfs://master:8020/):

 
{code:java}
Found 5 items
drwxr-xr-x - hbase hbase 0 2018-11-18 17:31 hdfs://master:8020/hbase
drwxrwxrwt - hdfs supergroup 0 2018-10-30 11:07 hdfs://master:8020/tmp
drwxr-xr-x - hdfs supergroup 0 2018-10-30 10:39 hdfs://master:8020/user
{code}
 

 

However, oss objects do not have owner & group attributes like hadoop files,  so we
assume both owner & group are the current user at the time the FS was instantiated.


> AliyunOSS: add missing owner & group attributes for oss FileStatus
> ------------------------------------------------------------------
>
>                 Key: HADOOP-15943
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15943
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs/oss
>    Affects Versions: 2.10.0, 2.9.1, 3.2.0, 3.1.1, 3.0.3, 3.3.0
>            Reporter: wujinhu
>            Assignee: wujinhu
>            Priority: Major
>
> Owner & group attributes are missing when you list oss objects via hadoop command:
> {code:java}
> Found 6 items
> drwxrwxrwx - 0 2018-08-01 21:37 /1024
> drwxrwxrwx - 0 2018-10-30 11:07 /50
> -rw-rw-rw- 1 94070 2018-11-08 21:48 /a
> -rw-rw-rw- 1 2441079322 2018-10-31 10:14 /lineitem.csv
> drwxrwxrwx - 0 1970-01-01 08:00 /tmp
> drwxrwxrwx - 0 1970-01-01 08:00 /user
> {code}
>  
> The result should like below(hadoop fs -ls hdfs://master:8020/):
> {code:java}
> Found 5 items
> drwxr-xr-x - hbase hbase 0 2018-11-18 17:31 hdfs://master:8020/hbase
> drwxrwxrwt - hdfs supergroup 0 2018-10-30 11:07 hdfs://master:8020/tmp
> drwxr-xr-x - hdfs supergroup 0 2018-10-30 10:39 hdfs://master:8020/user
> {code}
> However, oss objects do not have owner & group attributes like hadoop files,  so
we assume both owner & group are the current user at the time the FS was instantiated.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message