Hein du Plessis
Hein du Plessis

Reputation: 3357

How do I get the path to my user's home directory in HDFS

I want to see the absolute path to my home directory so that my code can pick up those files and process. But I find myself having to hdfs dfs -ls / and then explore from there until I come across my user's directory.

Effectively I want an hdfs dfs -pwd but of course this does not exist. If I can get a command to list a file on hdfs that shows it's full path, that will also work.

Safe lockdown everyone

Upvotes: 2

Views: 1937

Answers (1)

valex
valex

Reputation: 5809

$ hdfs getconf -confKey dfs.user.home.dir.prefix

Upvotes: 3

Related Questions