title: How to write encrypted data to HDFS
body: <p>As Apache Hadoop 2.6 has recently introduced HDFS-6134 (Transparent Data at Rest Encryption), I would like to know whether it is possible to directly write into an Encryption Zone using a Java Hadoop application? The documentation only explains the command <code>hdfs crypto createZone keyName myKey path /encryptionZone</code> to copy a file to an Encrypted Zone but I'd like to know how I can use the api to write into an Encrypted Zone?</p>