add thrift port setting at env.sh