[This is preliminary documentation and is subject to change.]
write a sequence of strings as hdfs text files. The collection is active throughout the computation and is
closed when the computation terminates: it concatenates records from all epochs in an undefined order
Namespace: Microsoft.Research.Naiad.Frameworks.WebHdfs
Assembly: Microsoft.Research.Naiad.WebHdfsSupport (in Microsoft.Research.Naiad.WebHdfsSupport.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public static Subscription WriteWebHdfsText( this Stream<string, Epoch> source, string user, int webPort, Uri prefix, long blockSize = -1, long segmentThreshold = 266338304 )
Parameters
- source
- Type: Microsoft.Research.NaiadStreamString, Epoch
stream of records to write - user
- Type: SystemString
hdfs user - webPort
- Type: SystemInt32
webhdfs protocol port - prefix
- Type: SystemUri
webhdfs directory to write the partitioned data into - blockSize (Optional)
- Type: SystemInt64
hdfs block size to use, or -1 for the file system default value - segmentThreshold (Optional)
- Type: SystemInt64
file size to write before closing the file and opening another one
Return Value
Type: Subscriptionhandle to wait on until the computation completes
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type StreamString, Epoch. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also