Hive提供了三种客户端访问接口:
1)Hive CLI(Hive Command Line,Hive命令行),客户端可以直接在命令行模式下进行操作。
2)hwi(Hive Web Interface,Hive Web接口),Hive提供了更直观的Web界面
3)hiveserver,Hive提供了Thrift服务,Thrift客户端目前支持C++/Java/PHP/Python/Ruby。
下面我们来分别尝试下这三种接口访问方式:
一、Hive CLI
直接键入hive命令即可进入CLI模式:
[cloud@cloud01 lib]$ hive Hive history file=/tmp/cloud/hive_job_log_cloud_201110311056_1009535967.txt hive> show tables; OK testhivedrivertable Time taken:3.038 seconds hive>