I have a date partitioned data in hive. However the file within a certain partition has a name like 000112_0. Is there a way to rename this file
There is no configuration property to do this but you can write your custom reducer class like OutputFormat
to achieve this.
OutputFormat
describes the output-specification for a Map-Reduce job. The Map-Reduce framework relies on the OutputFormat of the job to:
RecordWriter
implementation to be used to write out the output files of the job. Output files are stored in a FileSystem
. You can. Run:
hadoop fs -mv /path_to_file/old_name /path_to_file/new_name
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.