Strip ports from HDFS routing logic