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

Status : 

 


1
0
Sign in
to vote
ID 806503 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 10/24/2013 3:23:56 PM
Access Restriction Public

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
Sign in to post a comment.