Hi, The EXACT command depends on you webhdfs endpoint, user credentials, file paths and lots of other info only you have. And yes, you can upload a local file to your HDFS using webhdfs (which is a rest api to HDFS). Just read the documentation, there are examples there.
Cheers, Missatge de Hamza Asad <hamza.asa...@gmail.com> del dia ds., 18 d’abr. 2020 a les 1:08: > Thank you for the response. This link is helpful but i need the exact > command for copying file from local system to hdfs using webHDFS. Are we > able to perform this action through webHDFS as what i understand as of now > is that we can not copy file from local/remote system to Hdfs using > webHDFS. please advise > > Regards > > On Sat, 18 Apr 2020, 1:20 am Pau Tallada, <tall...@pic.es> wrote: > >> Hi, >> >> You have to use HTTP requests to interact with an webhdfs endpoint. >> >> See: https://dzone.com/articles/hadoop-rest-api-webhdfs >> >> Missatge de Hamza Asad <hamza.asa...@gmail.com> del dia dv., 17 d’abr. >> 2020 a les 23:18: >> >>> Dear member, >>> >>> I just want to know can we copy a file from local/remote server to HDFS >>> using webHDFS command? I know this might be not the right forum but im >>> unable to find a proper solution and command. Can some one help in >>> this matter? >>> >>> There is a hadoop fs command >>> Hadoop -copyFromLocal <sourcePath> < DestinationPathURI> but i need it >>> in webhdfs. Thanks in advance for your help. >>> >>> Regards >>> >> >> >> -- >> ---------------------------------- >> Pau Tallada Crespí >> Departament de Serveis >> Port d'Informació Científica (PIC) >> Tel: +34 93 170 2729 >> ---------------------------------- >> >> -- ---------------------------------- Pau Tallada Crespí Departament de Serveis Port d'Informació Científica (PIC) Tel: +34 93 170 2729 ----------------------------------