test help: help for erasure coding command -help SubstringComparator Usage: hdfs erasurecode [generic options] help: setPolicy command -fs NAMENODE -help setPolicy RegexpComparator ^[ \t]*Set a specified erasure coding policy to a directory( )* RegexpComparator ^-setPolicy \[-s <policyName>\] <path>(.)* help: getPolicy command -fs NAMENODE -help getPolicy SubstringComparator Get erasure coding policy information about at specified path RegexpComparator ^-getPolicy <path>(.)* help: listPolicies command -fs NAMENODE -help listPolicies SubstringComparator Get the list of erasure coding policies supported RegexpComparator ^-listPolicies (.)* setPolicy : set erasure coding policy on a directory to encode files -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy -s RS-6-3-64k /ecdir -fs NAMENODE -rmdir /ecdir SubstringComparator EC policy set successfully at NAMENODE/ecdir setPolicy : set a policy twice -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy /ecdir -fs NAMENODE -setPolicy /ecdir -fs NAMENODE -rmdir /ecdir SubstringComparator Directory /ecdir already has an erasure coding policy setPolicy : default policy -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy /ecdir -fs NAMENODE -getPolicy /ecdir -fs NAMENODE -rmdir /ecdir SubstringComparator ErasureCodingPolicy=[Name=RS-6-3-64k getPolicy : get EC policy information at specified path, which doesn't have an EC policy -fs NAMENODE -mkdir /noec -fs NAMENODE -getPolicy /noec -fs NAMENODE -rmdir /noec SubstringComparator Path NAMENODE/noec is not erasure coded getPolicy : get EC policy information at specified path, which doesn't have an EC policy -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy -s RS-6-3-64k /ecdir -fs NAMENODE -getPolicy /ecdir -fs NAMENODE -rmdir /ecdir SubstringComparator ErasureCodingPolicy=[Name=RS-6-3-64k getPolicy : get EC policy information at specified path, which doesn't have an EC policy -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy -s RS-6-3-64k /ecdir -fs NAMENODE -touchz /ecdir/ecfile -fs NAMENODE -getPolicy /ecdir/ecfile -fs NAMENODE -rm /ecdir/ecfile -fs NAMENODE -rmdir /ecdir SubstringComparator ErasureCodingPolicy=[Name=RS-6-3-64k listPolicies : get the list of ECPolicies supported -fs NAMENODE -listPolicies SubstringComparator RS-6-3 setPolicy : illegal parameters - path is missing -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy -fs NAMENODE -rmdir /ecdir RegexpComparator ^-setPolicy: <path> is missing(.)* setPolicy : illegal parameters - policy name is missing -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy -s -fs NAMENODE -rmdir /ecdir RegexpComparator ^-setPolicy: option -s requires 1 argument(.)* setPolicy : illegal parameters - too many arguments -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy /ecdir1 /ecdir2 -fs NAMENODE -rmdir /ecdir SubstringComparator -setPolicy: Too many arguments setPolicy : illegal parameters - invalidpolicy -fs NAMENODE -mkdir /ecdir -fs NAMENODE -setPolicy -s invalidpolicy /ecdir -fs NAMENODE -rmdir /ecdir SubstringComparator Policy 'invalidpolicy' does not match any of the supported policies. Please select any one of [RS-6-3-64k] setPolicy : illegal parameters - no such file -fs NAMENODE -setPolicy /ecdir RegexpComparator ^setPolicy: `/ecdir': No such file or directory(.)* getPolicy : illegal parameters - path is missing -fs NAMENODE -getPolicy RegexpComparator ^-getPolicy: <path> is missing(.)* getPolicy : illegal parameters - too many arguments -fs NAMENODE -getPolicy /ecdir /ecdir -fs NAMENODE -rm /ecdir SubstringComparator -getPolicy: Too many arguments getPolicy : illegal parameters - no such file -fs NAMENODE -getPolicy /ecdir RegexpComparator ^getPolicy: `/ecdir': No such file or directory(.)* listPolicies : illegal parameters - too many parameters -fs NAMENODE -listPolicies /ecdir SubstringComparator -listPolicies: Too many parameters