Misconfigured hosts file leads to hadoop file copy error

Got this error: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: :50010, which turns out to have been caused by the hosts file containing an empty entry i.e.

Export procedure for my VM

vagrant box package --output mymachine.box

Make sure Vagrant >=1.9.2 is installed on target host (see here for why). Copy the Vagrantfile from the original host but change appropriate line so it says (important!!) config.vm.box = "dev". Then vagrant box add mymachine.box --name dev. Then vagrant up dev and vagrant ssh dev (don't worry about network interface errors). In the guest machine sudo yum install NetworkManager (should solve some of the network errors, note that the /vagrant folder may not be mounted at this point due to network errors).

If Vagrant is looking for a non-existent network interface, e.g. eth1 just get rid of the corresponding configuration file. sudo rm /etc/sysconfig/network-scripts/ifcfg-eth1. Restart the machine and the /vagrant folder should be mounted.

Change file name color in grep results

The default magenta/purple color that colors filename output in grep is almost invisible on a black background. To change it to a more visible (but not very attractive) mustard color: export GREP_COLORS="fn=33"

GitHub – jonyt

Jon Yom-Tov