HADOOP-11021. Configurable replication factor in the hadoop archive command. Contributed by Zhe Zhang.

(cherry picked from commit ea1c6f31c2d2ea5b38ed57e2aa241d122103a721)