Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5P_SET_FAPL_HDFS

Sets up Read-Only HDFS virtual file driver

Procedure:

H5P_SET_FAPL_HDFS (fapl_id, fa)

Signature:

herr_t H5Pset_fapl_hdfs(hid_t fapl_id, H5FD_hdfs_fapl_t *fa)
  

Parameters:

hid_t fapl_id              IN: File access property list identifier

H5FD_hdfs_fapl_t *fa    IN: Structure containing file access property list configuration information

Description:

H5P_SET_FAPL_HDFS sets the file access property list fapl_id to use the HDFS.

The Read-Only HDFS virtual file driver transparently accesses HDF5-format files hosted on HDFS. The HDFS VFD supplies bytes transparently to the HDF5 library through the libhdfs API.

Returns:

Non-negative value if successful. Otherwise returns negative value.

Example:
 hid_t fapl_id = -1;
    H5FD_hdfs_fapl_t fa = {
        1,           /* fapl version               */
        "localhost", /* namenode name              */
        8020,        /* namenode port              */
        "",          /* username                   */
        "",          /* kerberos ticket cache path */
        2048,        /* stream buffer size         */
    };
 
    fapl_id = H5Pcreate(H5P_FILE_ACCESS);
    assert( 0 >= fapl_id );
    assert( 0 >= H5Pset_fapl_hdfs(fapl_id, &fa) );
 
    /* proceed with file open... */

 

History:
Release    Change
1.10.6C function introduced in this release.

--- Last Modified: February 10, 2020 | 01:19 PM