Nevermind, discovered
https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ#HiveDeveloperFAQ-HowdoIruntheclientpositive%2Fclientnegativeunittests%3F
cd itests/qtest
mvn test -Dtest=TestCliDriver
I still get failures, but at least now I can investigate
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 31.9 sec <<<
FAILURE! - in org.apache.hadoop.hive.cli.TestCliDriver
initializationError(org.apache.hadoop.hive.cli.TestCliDriver) Time elapsed:
0.005 sec <<< FAILURE!
java.lang.AssertionError: null
at
org.apache.hadoop.hive.ql.QTestUtil.getHdfsUriString(QTestUtil.java:288)
at
org.apache.hadoop.hive.ql.QTestUtil.convertPathsFromWindowsToHdfs(QTestUtil.java:276)
at org.apache.hadoop.hive.ql.QTestUtil.initConf(QTestUtil.java:233)
at org.apache.hadoop.hive.ql.QTestUtil.<init>(QTestUtil.java:317)
at
org.apache.hadoop.hive.cli.TestCliDriver.<clinit>(TestCliDriver.java:39)
From: Remus Rusanu [mailto:[email protected]]
Sent: Monday, November 18, 2013 2:30 PM
To: [email protected]
Cc: Ashutosh Chauhan; Tony Murphy (HDINSIGHT); Eric Hanson (SQL SERVER)
Subject: How do you run single query test(s) after mavenization?
I'm trying to run as per the updated Contributing
guide<https://cwiki.apache.org/confluence/display/Hive/HowToContribute#HowToContribute>:
mvn test -Dtest=TestCliDriver "-Dqfile=vectorized_mapjoin.q"
(The guide actually recommends -Dcase=TestCliDriver but using -Dcase executes
all tests. In fact -Dtest=... is recommended just few lines above, I guess
-Dcase=... is a typo)
But the run succeeds w/o actually executing any query test (I tried removing
-Dqfile= and does not make any difference).
I attached the output of the mvn test -Dtest=TestCliDriver run, if it sheds any
light.
Thanks,
~Remus