You could also use the pig shell which has always had the basic posix-like navigation commands like pwd and cd.
On 26 May 2017 18:55, "Tanvir Rahman" <[email protected]> wrote: > Hi Sidharth, > You can check the below HDFS shell tool. > https://github.com/avast/hdfs- <https://github.com/avast/hdfs-shell>shell > <https://github.com/avast/hdfs-shell> > <https://github.com/avast/hdfs-shell> > > *Feature highlights* > - HDFS DFS command initiates JVM for each command call, HDFS Shell does > it only once - which means great speed enhancement when you need to work > with HDFS more often > - Commands can be used in a short way - eg. *hdfs dfs -ls /*, *ls /* - > both will work > - *HDFS path completion using TAB key* > - you can easily add any other HDFS manipulation function > - there is a command history persisting in history log (~/.hdfs-shell/hdfs > -shell.log) > - support for relative directory + commands *cd* and *pwd* > - it can be also launched as a daemon (using UNIX domain sockets) > - 100% Java, it's open source > > Thanks > Tanvir > > > > On Fri, May 26, 2017 at 9:09 AM, Sidharth Kumar < > [email protected]> wrote: > >> Thanks, I'll check it out. >> >> >> Sidharth >> >> On 26-May-2017 4:10 PM, "Hariharan" <[email protected]> wrote: >> >>> The concept of working directory is only useful for processes, and HDFS >>> does not have executables. I guess what you're looking for is absolute vs >>> relative paths (so that you can do something like hdfs cat foo instead of >>> hdfs cat /user/me/foo). HDFS does have this to a limited extent - if your >>> path is not absolute, it is relative from your home directory (or root if >>> there is no home directory for your user). >>> >>> Thanks, >>> Hariharan >>> >>> On Fri, May 26, 2017 at 3:44 PM, Sidharth Kumar < >>> [email protected]> wrote: >>> >>>> Hi, >>>> >>>> Can you kindly explain me why hdfs doesnt have current directory >>>> concept. Why Hadoop is not implement to use pwd? Why command like cd and >>>> PWD cannot be implemented in hdfs? >>>> >>>> Regards >>>> Sidharth >>>> Mob: +91 8197555599 <+91%2081975%2055599> >>>> LinkedIn: www.linkedin.com/in/sidharthkumar2792 >>>> >>> >>> > > > -- > [image: photo] > *Mohammad Tanvir Rahman* > Teaching Assistant, University of Houston <http://www.uh.edu/> > 713 628 3571 | [email protected] | http://www2.cs.uh.edu/~tanvir/ > <http://facebook.com/tanvir.rahman.771> > <http://us.linkedin.com/in/tanvir9982000> > >
