adding Apache License and excluding resource in pom
remove hdfs usage in runRemoteScript and related RetentionTest fixes