Hive UT

本文介绍了使用 Apache Hive 进行各种测试案例的配置方法,包括离线模式设置、跳过 Ivy 依赖解析、清理 Eclipse 文件等操作。还涉及了不同类型的测试用例,如 TestCliDriver、TestParser 和 TestNegativeCliDriver 的执行命令,并展示了如何针对特定的 SQL 脚本文件进行测试。
ant package eclipse-files -Doffline=true -Divy.skip=true

ant clean package eclipse-files

记录下(可以去各个目录下的build.xml中查找到):
ant test -Doffline=true
ant testreport

ant test -Dtestcase=TestCliDriver -Dqfile=create_view.q -Dtest.silent=false
ant test -Dtestcase=TestPaser -Dqfile=input_part1.q -Dtest.silent=false
ant test -Dtestcase=TestNegativeCliDriver -Dqfile=script_broken_pipe1.q -Dtest.silent=false
ant test -Dtestcase=TestContribCliDriver -Dqfile=hook_plandeduplication2.q -Dtest.silent=false
ant -Dtestcase=TestJdbcDriver test
ant test -Dtestcase=TestHBaseCliDriver -Dqfile=hbase_queries.q -Dtest.silent=false

TestNegativeCliDriver/TestParseNegative/TestNegativeContribCliDriver


ant test -Dtestcase=TestCliDriver -Dqfile=describe_table.q -Dtest.silent=false -Doverwrite=true


export HIVE_CONF_DIR=$HOME/hive/hive-0.6.0/conf
tianzhao@tianzhao-VirtualBox:~/hive/hive-0.6.0$ bin/hive --service hiveserver

ant test -Dtestcase=TestJdbcDriver -Dstandalone=true
ant test -Dtestcase=TestHiveServer -Dstandalone=true


tianzhao@tianzhao-VirtualBox:~/hive/hadoop-0.19.1$ bin/hadoop dfsadmin -safemode get
Safe mode is OFF


http://wiki.apache.org/hadoop/Hive/HowToContribute?action=recall&rev=28
thrift
sudo apt-get install libboost-dev


TestCase:
org.apache.hadoop.hive.ql.exec.TestExecDriver //TestExecDriver的TestCase
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值