hadoop - Renaming part files of PIG output -
i have requirement of changing part file naming convention after running pig job. want part-r-0000
userdefinedname-r-0000
.
any possible solution that? i avoiding hadoop -cp , hadoop -mv commands.
thanks
this files created map-reduce jobs generated pig. should configure apache map-reduce. corresponding property mapreduce.output.basename
you can define hadoop property directly in pig script:
set mapreduce.output.basename 'custom-name';
Comments
Post a Comment