getClusterDFSDatabases

Syntax

getClusterDFSDatabases()

Arguments

None

Details

When executed by an administrator, this function returns all distributed databases in the cluster.

When executed by a non-admin user, it returns the distributed databases in the cluster for which the user has any of the following permissions: DB_MANAGE, DB_OWNER, DB_READ, DB_INSERT, DB_UPDATE, DB_DELETE, DBOBJ_CREATE, DBOBJ_DELETE.

Examples

getClusterDFSDatabases()
// output: ["dfs://demohash","dfs://myDataYesDB","dfs://testDB"]