Srini2k6
Srini2k6

Reputation: 390

HDFS Namenode High Availability

I enabled the Namenode High Availability using ambari.
I want to verify the connection using dfs.nameservices (nameservice ID) before start the coding.
Is there any command line or tool to verifiy it?

Upvotes: 0

Views: 102

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191711

You can use the normal HDFS CLI.

hdfs dfs -ls hdfs://nameservice/user

Which should also work the same as

hdfs dfs -ls hdfs:///user

Or giving your active namenode

hdfs dfs -ls hdfs://namenode-1:port/user

If you provide the standby namenode, it will say operation READ not supported in state standby

Upvotes: 1

Related Questions