You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/04/14 23:41:38 UTC

[GitHub] [spark] wangyum commented on a change in pull request #32173: [SPARK-35002][INFRA][FOLLOW-UP] Add current ip address, long hostname and short hostname to /etc/hosts

wangyum commented on a change in pull request #32173:
URL: https://github.com/apache/spark/pull/32173#discussion_r613653720



##########
File path: .github/actions/tune-runner-vm/action.yml
##########
@@ -0,0 +1,13 @@
+name: Tune Runner VM
+description: tunes the GitHub Runner VM operation system
+runs:
+  using: composite
+  steps:
+    - run: |
+        if [[ "$OSTYPE" == "linux-gnu"* ]]; then
+            # workaround for https://github.com/actions/virtual-environments/issues/3185
+            # Ensure that reverse lookups for current hostname are handled properly
+            # Add the current IP address, long hostname and short hostname record to /etc/hosts file
+            echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
+        fi
+      shell: bash

Review comment:
       Please append an empty line.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org