List of usage examples for org.apache.hadoop.hdfs XAttrHelper buildXAttr
public static XAttr buildXAttr(String name)
XAttr from xattr name with prefix. From source file:com.mellanox.r4h.DFSClient.java
License:Apache License
public void removeXAttr(String src, String name) throws IOException { checkOpen();//w w w . ja v a2s . c o m TraceScope scope = getPathTraceScope("removeXAttr", src); try { namenode.removeXAttr(src, XAttrHelper.buildXAttr(name)); } catch (RemoteException re) { throw re.unwrapRemoteException(AccessControlException.class, FileNotFoundException.class, NSQuotaExceededException.class, SafeModeException.class, SnapshotAccessControlException.class, UnresolvedPathException.class); } finally { scope.close(); } }