hadoop - How do I find the default HDFS directory and its contents from within Hive Beeline? -


i see contents of hdfs directory within hive beeline, using "ls" command. similarly, i'd see default hdfs directory set to, perhaps "pwd" command.

is there way in beeline, or stuck going linux prompt , using hadoop instead?

you can enter !sh @ beeline prompt followed shell commands, example:

!sh pwd 

this shows working directory in host filesystem, of course. can use same mechanism issue hdfs commands:

!sh hdfs dfs -ls / 

i'm not aware of mechanism gives default hdfs directory. thinking of hive databases?

for more info help @ beeline prompt.


Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -