|
|
|
|
|
hdfsList (Function) In french: hdfsListe Lists the content of a directory found on a Hadoop server. // Connection MyConnection is hdfsConnection MyConnection.namenode = "MyServer" MyConnection.User = "Admin" hdfsOpenConnection(MyConnection) // Retrieve the directory content Content is array of hdfsStatus = hdfsList(MyConnection, "/") // Display the directory content FOR EACH Elem OF Content Trace(Elem.Path) END
Syntax
<Result> = hdfsList(<Connection> , <Path>)
<Result>: Array Array of hdfsStatus variables corresponding to the directory content. <Connection>: hdfsConnection variable Name of the hdfsConnection variable that corresponds to connection to the Hadoop server. <Path>: Character string Absolute path of the directory on the Hadoop server whose content will be listed. This path is case sensitive.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|