Skip to content

Commit

Permalink
[FLINK-4209] Change hostname resolution from IP to name
Browse files Browse the repository at this point in the history
This solves issues when a host has multiple IPs
  • Loading branch information
iemejia authored and aljoscha committed Jul 18, 2016
1 parent a710fc3 commit e1e8c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flink-contrib/docker-flink/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

if [ "$1" = "jobmanager" ]; then
echo "Starting Job Manager"
sed -i -e "s/jobmanager.rpc.address: localhost/jobmanager.rpc.address: `hostname -i`/g" $FLINK_HOME/conf/flink-conf.yaml
sed -i -e "s/jobmanager.rpc.address: localhost/jobmanager.rpc.address: `hostname -f`/g" $FLINK_HOME/conf/flink-conf.yaml
sed -i -e "s/taskmanager.numberOfTaskSlots: 1/taskmanager.numberOfTaskSlots: `grep -c ^processor /proc/cpuinfo`/g" $FLINK_HOME/conf/flink-conf.yaml
$FLINK_HOME/bin/jobmanager.sh start cluster
echo "config file: " && grep '^[^\n#]' $FLINK_HOME/conf/flink-conf.yaml
Expand Down

0 comments on commit e1e8c2d

Please sign in to comment.