[ 
https://issues.apache.org/jira/browse/HDDS-1834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888798#comment-16888798
 ] 

Lokesh Jain edited comment on HDDS-1834 at 7/19/19 11:28 AM:
-------------------------------------------------------------

[~adoroszlai] Thanks for reporting the issue! On my local setup it is working.  

 
{code:java}
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -mkdir -p 
o3fs://bucket1.vol1/testdir/deep
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -touch 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -ls 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
-rw-rw-rw- 1 hadoop hadoop 0 2019-07-19 11:19 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -ls 
o3fs://bucket1.vol1/testdir/
Found 2 items
-rw-rw-rw- 1 hadoop hadoop 0 2019-07-19 11:19 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
drwxrwxrwx - hadoop hadoop 0 2019-07-19 11:19 o3fs://bucket1.vol1/testdir/deep
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -ls o3fs://bucket1.vol1/
Found 1 items
drwxrwxrwx - hadoop hadoop 0 2019-07-19 11:19 o3fs://bucket1.vol1/testdir
{code}
 

 


was (Author: ljain):
[~adoroszlai] Thanks for reporting the issue! On my local setup it is working.  

 
{code:java}
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -mkdir -p 
o3fs://bucket1.vol1/testdir/deep
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -touch 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -ls 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
-rw-rw-rw- 1 hadoop hadoop 0 2019-07-19 11:19 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -ls 
o3fs://bucket1.vol1/testdir/
Found 2 items
-rw-rw-rw- 1 hadoop hadoop 0 2019-07-19 11:19 
o3fs://bucket1.vol1/testdir/TOUCHFILE.txt
drwxrwxrwx - hadoop hadoop 0 2019-07-19 11:19 o3fs://bucket1.vol1/testdir/deep
hadoop32 ljain$ docker exec 6bbbee05e7e6 ozone fs -ls o3fs://bucket1.vol1/
Found 1 items
drwxrwxrwx - hadoop hadoop 0 2019-07-19 11:19 o3fs://bucket1.vol1/testdir
{code}
 

 

> ozone fs -mkdir -p does not create parent directories
> -----------------------------------------------------
>
>                 Key: HDDS-1834
>                 URL: https://issues.apache.org/jira/browse/HDDS-1834
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Filesystem
>            Reporter: Doroszlai, Attila
>            Assignee: Lokesh Jain
>            Priority: Major
>
> ozonesecure-ozonefs acceptance test is failing, because {{ozone fs -mkdir 
> -p}} only creates key for the specific directory, not its parents.
> {noformat}
> ozone fs -mkdir -p o3fs://bucket1.fstest/testdir/deep
> {noformat}
> Previous result:
> {noformat:title=https://ci.anzix.net/job/ozone-nightly/176/artifact/hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/result/log.html#s1-s16-t3-k2}
> $ ozone sh key list o3://om/fstest/bucket1 | grep -v WARN | jq -r 
> '.[].keyName'
> testdir/
> testdir/deep/
> {noformat}
> Current result:
> {noformat:title=https://ci.anzix.net/job/ozone-nightly/177/artifact/hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/result/log.html#s1-s16-t3-k2}
> $ ozone sh key list o3://om/fstest/bucket1 | grep -v WARN | jq -r 
> '.[].keyName'
> testdir/deep/
> {noformat}
> The failure happens on first operation that tries to use {{testdir/}} 
> directly:
> {noformat}
> $ ozone fs -touch o3fs://bucket1.fstest/testdir/TOUCHFILE.txt
> ls: `o3fs://bucket1.fstest/testdir': No such file or directory
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to