title: Error when attempting to run PubSub emulator locally
body: <p>I want to do some pubsub testing locally so I have done "gcloud components install pubsub-emulator".</p>
  
  <p>Now when I attempt to do "gcloud beta emulators pubsub start" I get the following error:</p>
  
  <pre><code>ERROR: (gcloud.beta.emulators.pubsub.start) [Errno 8] nodename nor servname provided, or not known
  This may be due to network connectivity issues. Please check your network settings, and the status of the service you are trying to reach.
  </code></pre>
  
  <p>I am using Java version 1.8. Using Java9 wasn't working for me, and someone recommended I downgrade. I can't find any mention of this error. My .profile looks like this:</p>
  
  <pre><code>export PATH="$HOME/develop/google-cloud-sdk/bin:$PATH"
  </code></pre>
  
  <p>My .bashrc looks like:</p>
  
  <pre><code>export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
  export PATH=$JAVA_HOME/bin:$PATH
  </code></pre>
  
  <p>When I type java -version I get:</p>
  
  <pre><code>java version "1.8.0_152"
  Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
  Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
  </code></pre>