[
https://issues.apache.org/jira/browse/HADOOP-18226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ayush Saxena moved HDFS-16571 to HADOOP-18226:
----------------------------------------------
Component/s: fs/azure
(was: fs/azure)
Key: HADOOP-18226 (was: HDFS-16571)
Affects Version/s: 3.1.1
(was: 3.1.1)
Project: Hadoop Common (was: Hadoop HDFS)
> ABFS: Two BlobCreated get triggered for writing one ABFS file
> -------------------------------------------------------------
>
> Key: HADOOP-18226
> URL: https://issues.apache.org/jira/browse/HADOOP-18226
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/azure
> Affects Versions: 3.1.1
> Reporter: Bryan Chen
> Priority: Minor
>
> 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://[email protected]/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: [email protected]
For additional commands, e-mail: [email protected]