|
|
|
|
hdfsCreateDirectory (Función) Crea un directorio en un servidor Hadoop. // Connection MyConnection is hdfsConnection MyConnection.namenode = "MyServer" MyConnection.User = "Admin" hdfsOpenConnection(MyConnection) // Define the rights Rights is hdfsRights Rights.UserReading = True Rights.UserWriting = True // Create the directory hdfsCreateDirectory(MyConnection, "/tmp/subdirectory", Rights)
Sintaxis
<Result> = hdfsCreateDirectory(<Connection> , <Path> [, <Rights>])
<Result>: booleano - True si se creó el directorio,
- False si se produce un problema. La función ErrorInfo permite identificar el error.
<Connection>: hdfsConnection Variable Nombre del hdfsConnection Variable que corresponde a la conexión con el servidor Hadoop. <Path>: Cadena de caracteres ruta absoluta del directorio que se creará en el servidor de Hadoop. Esta ruta distingue entre mayúsculas y minúsculas. <Rights>: Opcional hdfsRights Variable Nombre de hdfsRights Variable correspondiente a los derechos que se concederán al directorio creado. Por Default, todos los derechos son concedidos a todos los usuarios.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|