[
https://issues.apache.org/jira/browse/HDDS-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nilotpal Nandi updated HDDS-210:
--------------------------------
Environment:
was:
ozone getKey command always expects the filename to be present along with the
file-path for the "-file" argument.
It throws error if filename is not provided.
{noformat}
[root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/bucket123/passwd -file
/test1/
2018-07-02 06:45:27,355 WARN util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
Command Failed : {"httpCode":0,"shortMessage":"/test1/exists. Download will
overwrite an existing file.
Aborting.","resource":null,"message":"/test1/exists. Download will overwrite an
existing file. Aborting.","requestID":null,"hostName":null}
[root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/bucket123/passwd -file
/test1/passwd
2018-07-02 06:45:39,722 WARN util.NativeCodeLoader: Unable to load
native-hadoop library for your platform... using builtin-java classes where
applicable
2018-07-02 06:45:40,354 INFO conf.ConfUtils: raft.rpc.type = GRPC (default)
2018-07-02 06:45:40,366 INFO conf.ConfUtils: raft.grpc.message.size.max =
33554432 (custom)
2018-07-02 06:45:40,372 INFO conf.ConfUtils: raft.client.rpc.retryInterval =
300 ms (default)
2018-07-02 06:45:40,374 INFO conf.ConfUtils:
raft.client.async.outstanding-requests.max = 100 (default)
2018-07-02 06:45:40,374 INFO conf.ConfUtils:
raft.client.async.scheduler-threads = 3 (default)
2018-07-02 06:45:40,507 INFO conf.ConfUtils: raft.grpc.flow.control.window =
1MB (=1048576) (default)
2018-07-02 06:45:40,507 INFO conf.ConfUtils: raft.grpc.message.size.max =
33554432 (custom)
2018-07-02 06:45:40,814 INFO conf.ConfUtils: raft.client.rpc.request.timeout =
3000 ms (default){noformat}
Expectation :
----------------------
ozone getKey should work even when only file-path is provided (without
filename). It should create a file in the given file-path with its key's name
as its name.
i.e,
given , /test1 is a directory .
if ./ozone oz -getKey /nnvolume1/bucket123/passwd -file /test1 is run,
file 'passwd' should be created in the directory /test1 .
> ozone getKey command always expects the filename to be present along with
> file-path in "-file" argument
> -------------------------------------------------------------------------------------------------------
>
> Key: HDDS-210
> URL: https://issues.apache.org/jira/browse/HDDS-210
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: Ozone Client
> Environment:
>
> Reporter: Nilotpal Nandi
> Priority: Major
> Fix For: 0.2.1
>
>
> ozone getKey command always expects the filename to be present along with the
> file-path for the "-file" argument.
> It throws error if filename is not provided.
> {noformat}
> [root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/bucket123/passwd -file
> /test1/
> 2018-07-02 06:45:27,355 WARN util.NativeCodeLoader: Unable to load
> native-hadoop library for your platform... using builtin-java classes where
> applicable
> Command Failed : {"httpCode":0,"shortMessage":"/test1/exists. Download will
> overwrite an existing file.
> Aborting.","resource":null,"message":"/test1/exists. Download will overwrite
> an existing file. Aborting.","requestID":null,"hostName":null}
> [root@ozone-vm bin]# ./ozone oz -getKey /nnvolume1/bucket123/passwd -file
> /test1/passwd
> 2018-07-02 06:45:39,722 WARN util.NativeCodeLoader: Unable to load
> native-hadoop library for your platform... using builtin-java classes where
> applicable
> 2018-07-02 06:45:40,354 INFO conf.ConfUtils: raft.rpc.type = GRPC (default)
> 2018-07-02 06:45:40,366 INFO conf.ConfUtils: raft.grpc.message.size.max =
> 33554432 (custom)
> 2018-07-02 06:45:40,372 INFO conf.ConfUtils: raft.client.rpc.retryInterval =
> 300 ms (default)
> 2018-07-02 06:45:40,374 INFO conf.ConfUtils:
> raft.client.async.outstanding-requests.max = 100 (default)
> 2018-07-02 06:45:40,374 INFO conf.ConfUtils:
> raft.client.async.scheduler-threads = 3 (default)
> 2018-07-02 06:45:40,507 INFO conf.ConfUtils: raft.grpc.flow.control.window =
> 1MB (=1048576) (default)
> 2018-07-02 06:45:40,507 INFO conf.ConfUtils: raft.grpc.message.size.max =
> 33554432 (custom)
> 2018-07-02 06:45:40,814 INFO conf.ConfUtils: raft.client.rpc.request.timeout
> = 3000 ms (default){noformat}
>
> Expectation :
> ----------------------
> ozone getKey should work even when only file-path is provided (without
> filename). It should create a file in the given file-path with its key's name
> as its name.
> i.e,
> given , /test1 is a directory .
> if ./ozone oz -getKey /nnvolume1/bucket123/passwd -file /test1 is run,
> file 'passwd' should be created in the directory /test1 .
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]