[
https://issues.apache.org/jira/browse/KNOX-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066385#comment-17066385
]
ASF subversion and git services commented on KNOX-2240:
-------------------------------------------------------
Commit b93cc1c68afa0e773027bfa2745f1d37f376bca1 in knox's branch
refs/heads/master from Larry McCay
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=b93cc1c ]
KNOX-2240 - KnoxShell Custom Command for WEBHDFS Use (#296)
* KNOX-2240 - KnoxShell Custom Command for WEBHDFS Use
Change-Id: I817969b5131dd08e5a7a174c73aacb13e9027e4a
* Prompt to overwrite on put
Change-Id: I110037204fcd1cd556d0336321e309cd8e8dff08
* improve csv builder
Change-Id: I5b86694ea374ed2f78dfc049402f40e7de1fa508
* default to-path in an :fs put command to home directory and same filename as
source
Change-Id: I8e75b8aadd81625a1c4aff05851f1557496f4ef9
* fix class clast issue
Change-Id: Ifb14d1ca93ca3702a06ff744b7e79f524ea0b5d8
* KNOX-2240 - address review comments
Change-Id: Ibb4e4c3c3590aafb22d618b602de96e2cb4eb9f0
* KNOX-2240 - fix PMD failure
Change-Id: I1d47c0aa60f6c409fb59b16c8b9e3f57070be8ca
> KnoxShell Custom Command for WEBHDFS Use
> ----------------------------------------
>
> Key: KNOX-2240
> URL: https://issues.apache.org/jira/browse/KNOX-2240
> Project: Apache Knox
> Issue Type: Improvement
> Components: KnoxShell
> Reporter: Larry McCay
> Assignee: Larry McCay
> Priority: Major
> Fix For: 1.4.0
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> I'd like to extend the KnoxShell environment to have a Custom Command for
> interacting with Hadoop FileSystems that support the WebHDFS REST API. We
> will wrap the use of the KnoxShell HDFS classes for posix like commands in
> the shell environment.
> In order to interact with multiple webhdfs filesystems we introduce the
> notion of mounting a webhdfs service from a Knox topology URL. For instance,
> see the following mount command to mount such a service to a mount point:
> {code}
> :fs mount https://knoxhost.example.com/topology/cdp-proxy-api retail
> {code}
> The above mounts a Hadoop filesystem to a mount point called "retail".
> Given this mounted filesystem we are able to interact with it through the
> mountpoint as the root.
> {code}
> :fs ls /retail/user/lmccay
> {code}
> The above will list the contents of my home directory from the mounted
> filesystem as well as return the listing as a KnoxShellTable that can be
> sorted, selected, filtered, etc as any other KnoxShellTable.
> Additional commands
> {code}
> :fs mkdir /retail/user/lmccay/tmp 755
> :fs cat /retail/user/lmccay/tmp/README
> :fs put /home/lmccay/README /retail/user/lmccay/tmp/README
> :fs get /retail/user/lmccay/tmp/README /home/lmccay/README
> :fs rename /retail/user/lmccay/tmp/README /retail/user/lmccay/tmp/README2
> :fs rm /retail/user/lmccay/tmp/README
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)