Support Questions

Find answers, ask questions, and share your expertise

Using C# to upload files via Knox (LDAP) and webHDFS

avatar
Expert Contributor

I am having trouble finding any documentation on being able to access webHDFS from a C# app (not much of a surprise). I'm simply struggling with knowing how to pass the password to authenticate. Any suggestions?

1 ACCEPTED SOLUTION

avatar
Master Guru

@Kevin Vasko Knox provides REST API, so just consider Knox to be an https or http site and you want to access it using GET, PUT, POST etc with simple authentication. You can use C# classes like WebRequest and NetworkCredentials, here is one good looking sample. Try first to list a directory (GET). And note that file upload is a 2-step PUT process.

View solution in original post

1 REPLY 1

avatar
Master Guru

@Kevin Vasko Knox provides REST API, so just consider Knox to be an https or http site and you want to access it using GET, PUT, POST etc with simple authentication. You can use C# classes like WebRequest and NetworkCredentials, here is one good looking sample. Try first to list a directory (GET). And note that file upload is a 2-step PUT process.