hive 进入客户段后,能够创建database,但是进行show databases;时出错:
Failed with exception java.io.IOException:java.io.IOException: Cannot create an instance of InputFormat class org.apache.hadoop.mapred.TextInputFormat as specified in mapredWork!
原因:缺少hadoop-lzo-*.jar
解决方法:把hadoop-lzo-*.jar拷贝到$HIVE_HOME/lib/ 目录下。重新进入hive客户端即可。