Hi all, It seems like a bug of hive. The URI of table is valued by this code in Hive.java, table.setDataLocation(new URI(tTable.getSd().getLocation())); and the tTable.getSd().getLocation() is a string without prefix like "file://" and "hdfs://" , it will causes that the scheme of URI object be null.
Jeremy -- My research interests are distributed systems, parallel computing and bytecode based virtual machine. http://coderplay.javaeye.com