简体   繁体   中英

Copy file on to HDFS Hadoop environment using C#

How do I connect to HDFS(on Hortonworks/EC2 data platform) and copy a file from Local system using a .net application.?
Is using the WebHDFS the right approach to connect to HDFS via .net application? referred below link[ https://hadoopsdk.codeplex.com/wikipage?title=WebHDFS%20Client&referringTitle=Home] .
Please let me know what is the right way to connect to HDFS using C#.

You can connect ot HDFS as follows.

   Hadoop.Connect().StorageSystem.CopyFromLocal(sourcePath, "/FolderPath");

Use Microsoft .NET Map Reduce API for Hadoop.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM