Bulk load and other changes

changes include:
- Setting the LIBHDFS_OPTS variable to Xmx2048m  to limit the
  amout of virtual memory  used when reading hive tables to 2GB.
- Making update statistics use bulk load by default
- Changing bulk load to return the number of rows loaded
- fix for bug 1359872 where create index hangs

Change-Id: Ic8e36cfef43ed2ce7c2c2469c1b9c315a761ee31
Merge "Bulk load and other changes"