You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Bryan Chen (Jira)" <ji...@apache.org> on 2022/05/06 17:04:00 UTC

[jira] [Created] (HDFS-16571) ABFS: Two BlobCreated get triggered for writing one ABFS file

Bryan Chen created HDFS-16571:
---------------------------------

             Summary: ABFS: Two BlobCreated get triggered for writing one ABFS file
                 Key: HDFS-16571
                 URL: https://issues.apache.org/jira/browse/HDFS-16571
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: fs/azure
    Affects Versions: 3.1.1
            Reporter: Bryan Chen


Using the new ABFS driver to write a file on ADLS gen storage account triggers 2 BlobCreated events in the Azure backend while we are expecting one.

Here is an example code snippet for creating a file (in scala):
{code:java}
import java.io._
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.{FileSystem, Path, RemoteIterator}
val conf = new Configuration()
val path = new Path("abfss://container@some-ADLS-account.dfs.core.windows.net/test.txt")
val fs = path.getFileSystem(conf)
val bs = new BufferedOutputStream(fs.create(path, true))
bs.write("test".getBytes("UTF-8"))
bs.close() {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org