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... */ |