Home Dashboard Directory Help

Provide an example for a C# M&R that process pdfs, images, or docx by erincon


Status: 

Active


1
0
Sign in
to vote
Type: Suggestion
ID: 806503
Opened: 10/24/2013 3:23:56 PM
Access Restriction: Public
0
Workaround(s)
view

Description

I'm trying to read files with the FileStream object:
FileStream fs = File.Open(inputLine, FileMode.Open, FileAccess.Read);

I always get error with filename error; I try this:
hdfs://localhost/path/filename.docx
hdfs://localhost:8020/path/filename.docx
file://localhost:8020/path/filename.docx
//path/filename.docx

I don't konw if FileStream is appropiate for reading files from hdfs. Is correct using FileStream object?

should I use WebHDFSClient API?
or should I use HdfsFileSystem (http://blogs.msdn.com/b/carlnol/archive/2013/02/08/hdinsight-net-hdfs-file-access.aspx) ?

The data will be stored in WASB; would the code be the same?

Thank you
Details
Sign in to post a comment.
Sign in to post a workaround.