Hi Cinyoung, 

Concat has some restrictions, like the need for src file having last block size 
to be the same as the configured dfs.block.size. If all the conditions are met, 
below command example should work (where we are concatenating /user/root/file-2 
into /user/root/file-1):

curl -i -X POST 
"http:HTTPFS_HOST:14000/webhdfs/v1/user/root/file-1?user.name=root&op=CONCAT&sources=/user/root/file-2"

Is this similar to what you had tried? Can you share the resulting output you 
are getting?



> On 25 Jul 2017, at 09:00, Cinyoung Hur <[email protected]> wrote:
> 
> https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Concat_Files
>  
> <https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Concat_Files>
> 
> I tried to concat multiple parts to single target file through webhdfs. 
> But, I couldn't do it. 
> Could you give me examples concatenating parts?

Reply via email to