Use 'wget http://169.254.169.254/' to determine if we're running in aws
Use 'wget http://169.254.169.254/' to determine if we're running in aws

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify_ec2_instances.html
lists the above endpoint as the first choice.

In my running instance 'dmidecode -s bios-version' prints out:
1.0

dmidecode --string system-uuid|grep ^ec2 seems like a valid alternative
here.

I removed the 'grep' assertions since it's possible that images may have
already configured ntp here.

Change-Id: Iddb2574dbcb3f97cf697095d1777e51ce463b205
Reviewed-on: http://gerrit.cloudera.org:8080/12727
Reviewed-by: Joe McDonnell <2f04924382c6a21f96a9a4f8cbedc35ff4599584@cloudera.com>
Tested-by: Impala Public Jenkins <039b6b20426ff68ebe492b3021890d8c8fd010c9@cloudera.com>
Reviewed-on: https://gerrit.sjc.cloudera.com/c/cdh/impala/+/49239
Tested-by: Jenkins User <d95b56ce41a2e1ac4cecdd398defd7414407cc08@cloudera.com>
Reviewed-by: Laszlo Gaal <57b770caf3b7d570ebf40813dac2ce5f53722fa7@cloudera.com>
Tested-by: Laszlo Gaal <57b770caf3b7d570ebf40813dac2ce5f53722fa7@cloudera.com>
CDH-Build: Laszlo Gaal <57b770caf3b7d570ebf40813dac2ce5f53722fa7@cloudera.com>
Quasar-L0: Laszlo Gaal <57b770caf3b7d570ebf40813dac2ce5f53722fa7@cloudera.com>

cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,cloudera/Impala