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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -