[jira] [Created] (HIVE-2856) When integrating into MapReduce2, additional '^' in escape test

2012-03-08 Thread Zhenxiao Luo (Created) (JIRA)
When integrating into MapReduce2, additional '^' in escape test
---

 Key: HIVE-2856
 URL: https://issues.apache.org/jira/browse/HIVE-2856
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


Additional '^' in escape test:

[junit] Begin query: escape1.q
[junit] Copying file: file:/home/cloudera/Code/hive/data/files/escapetest.txt
[junit] 12/01/23 15:22:15 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 15:22:15 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] diff -a -I file: -I pfile: -I hdfs: -I /tmp/ -I invalidscheme: -I 
lastUpdateTime -I lastAccessTime -I [Oo]wner -I CreateTime -I LastAccessTime -I 
Location -I LOCATION ' -I transient_lastDdlTime -I last_modified_ -I 
java.lang.RuntimeException -I at org -I at sun -I at java -I at junit -I Caused 
by: -I LOCK_QUERYID: -I LOCK_TIME: -I grantTime -I [.][.][.] [0-9]* more -I 
job_[0-9]*_[0-9]* -I USING 'java -cp 
/home/cloudera/Code/hive/build/ql/test/logs/clientpositive/escape1.q.out 
/home/cloudera/Code/hive/ql/src/test/results/clientpositive/escape1.q.out
[junit] 893d892
[junit] < 1 1   ^
[junit] junit.framework.AssertionFailedError: Client execution results failed 
with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:50)
[junit] at 
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_escape1(TestCliDriver.java:131)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit] at java.lang.reflect.Method.invoke(Method.java:616)
[junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.framework.TestResult.run(TestResult.java:113)
[junit] at junit.framework.TestCase.run(TestCase.java:124)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit] Exception: Client execution results failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2790) When integrating into MapReduce2, select 'number' and select cast('number' as DOUBLE) returns NULL

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
When integrating into MapReduce2, select 'number' and select cast('number' as 
DOUBLE) returns NULL
--

 Key: HIVE-2790
 URL: https://issues.apache.org/jira/browse/HIVE-2790
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


Query result(-30.33) is missing in the running output:

[junit] Begin query: groupby_neg_float.q
[junit] 12/01/24 10:57:53 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/24 10:57:53 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/24 10:57:58 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/24 10:57:58 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] diff -a -I file: -I pfile: -I hdfs: -I /tmp/ -I invalidscheme: -I 
lastUpdateTime -I lastAccessTime -I [Oo]wner -I CreateTime -I LastAccessTime -I 
Location -I LOCATION ' -I transient_lastDdlTime -I last_modified_ -I 
java.lang.RuntimeException -I at org -I at sun -I at java -I at junit -I Caused 
by: -I LOCK_QUERYID: -I LOCK_TIME: -I grantTime -I [.][.][.] [0-9]* more -I 
job_[0-9]*_[0-9]* -I USING 'java -cp 
/home/cloudera/Code/hive/build/ql/test/logs/clientpositive/groupby_neg_float.q.out
 
/home/cloudera/Code/hive/ql/src/test/results/clientpositive/groupby_neg_float.q.out
[junit] 14c14,15
[junit] < POSTHOOK: Output: 
file:/tmp/cloudera/hive_2012-01-24_10-57-51_652_2049459353574360528/-mr-1
[junit] —
[junit] > POSTHOOK: Output: 
file:/data/users/njain/hive5/hive5/build/ql/tmp/815331462/1
[junit] > -30.33
[junit] 28c29,30
[junit] < POSTHOOK: Output: 
file:/tmp/cloudera/hive_2012-01-24_10-57-56_909_7738265803221872068/-mr-1
[junit] —
[junit] > POSTHOOK: Output: 
file:/data/users/njain/hive5/hive5/build/ql/tmp/2082702070/1
[junit] junit.framework.AssertionFailedError: Client execution results failed 
with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:50)
[junit] at 
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_groupby_neg_float(TestCliDriver.java:129)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit] at java.lang.reflect.Method.invoke(Method.java:616)
[junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.framework.TestResult.run(TestResult.java:113)
[junit] at junit.framework.TestCase.run(TestCase.java:124)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit] Exception: Client execution results failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] > -30.33
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2789) When integrating into MapReduce2, 'select * from src distribute by src.key limit 1' returns non-deterministic result

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
When integrating into MapReduce2, 'select * from src distribute by src.key 
limit 1' returns non-deterministic result


 Key: HIVE-2789
 URL: https://issues.apache.org/jira/browse/HIVE-2789
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


query_properties.q test failure:

[junit] Begin query: query_properties.q
[junit] 12/01/23 16:59:13 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:13 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:18 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:18 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:22 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:22 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:27 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:27 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:32 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:32 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:36 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:36 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:41 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:41 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:46 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:46 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:50 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:50 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:55 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:55 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:59 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:59 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:04 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 17:00:04 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:08 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 17:00:08 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:13 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 17:00:13 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:18 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 17:00:18 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:22 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 17:00:22 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:27 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 17:00:27 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 17:00:31 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.d

[jira] [Created] (HIVE-2788) When integrating into MapReduce2, get wrong file exception in loading archive_corrupt.rc

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
When integrating into MapReduce2, get wrong file exception in loading 
archive_corrupt.rc


 Key: HIVE-2788
 URL: https://issues.apache.org/jira/browse/HIVE-2788
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


archive_corrupt.q is failing due to file format exception when loading 
archive_corrupt.rc:

[junit] Running org.apache.hadoop.hive.cli.TestCliDriver
[junit] Begin query: archive_corrupt.q
[junit] Copying file: 
file:/home/cloudera/Code/hive/data/files/archive_corrupt.rc
[junit] Exception: Client Execution failed with error code = 9
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] junit.framework.AssertionFailedError: Client Execution failed with 
error code = 9
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:50)
[junit] at 
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_archive_corrupt(TestCliDriver.java:109)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit] at java.lang.reflect.Method.invoke(Method.java:616)
[junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.framework.TestResult.run(TestResult.java:113)
[junit] at junit.framework.TestCase.run(TestCase.java:124)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.)
[junit] Cleaning up TestCliDriver
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 6.778 sec
[junit] Test org.apache.hadoop.hive.cli.TestCliDriver FAILED
[for] /home/cloudera/Code/hive/ql/build.xml: The following error occurred while 
executing this line:
[for] /home/cloudera/Code/hive/build.xml:328: The following error occurred 
while executing this line:
[for] /home/cloudera/Code/hive/build-common.xml:453: Tests failed!

And, in /build/ql/test/logs/clientpositive/archive_corrupt.q.out:

PREHOOK: query: drop table tstsrcpart
PREHOOK: type: DROPTABLE
POSTHOOK: query: drop table tstsrcpart
POSTHOOK: type: DROPTABLE
PREHOOK: query: create table tstsrcpart like srcpart
PREHOOK: type: CREATETABLE
POSTHOOK: query: create table tstsrcpart like srcpart
POSTHOOK: type: CREATETABLE
POSTHOOK: Output: default@tstsrcpart
PREHOOK: query: load data local inpath '../data/files/archive_corrupt.rc' 
overwrite into table tstsrcpart partition (ds='2008-04-08', hr='11')
PREHOOK: type: LOAD
PREHOOK: Output: default@tstsrcpart
Failed with exception Wrong file format. Please check the file's format.
FAILED: Execution Error, return code 1 from 
org.apache.hadoop.hive.ql.exec.MoveTask

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2787) When integrating into MapReduce2, ALTER TABLE test ARCHIVE get invalid usage error

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
When integrating into MapReduce2, ALTER TABLE test ARCHIVE get invalid usage 
error
--

 Key: HIVE-2787
 URL: https://issues.apache.org/jira/browse/HIVE-2787
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Carl Steinbach




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2784) Integrating with MapReduce2 get NPE throwed when executing a query with a "TABLESAMPLE(x percent)" clause

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
Integrating with MapReduce2 get NPE throwed when executing a query with a 
"TABLESAMPLE(x percent)" clause
-

 Key: HIVE-2784
 URL: https://issues.apache.org/jira/browse/HIVE-2784
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Carl Steinbach


the following TestCliDriver testcases fail:

sample_islocalmode_hook
split_sample


[junit] java.lang.NullPointerException
[junit] at 
org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.sampleSplits(CombineHiveInputFormat.java:450)
[junit] at 
org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getSplits(CombineHiveInputFormat.java:403)
[junit] at 
org.apache.hadoop.mapreduce.JobSubmitter.writeOldSplits(JobSubmitter.java:472)
[junit] at 
org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:464)
[junit] at 
org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:360)
[junit] at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1215)
[junit] at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1212)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at javax.security.auth.Subject.doAs(Subject.java:396)
[junit] at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1157)
[junit] at org.apache.hadoop.mapreduce.Job.submit(Job.java:1212)
[junit] at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:592)
[junit] at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:587)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at javax.security.auth.Subject.doAs(Subject.java:396)
[junit] at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1157)
[junit] at 
org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:587)
[junit] at 
org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:452)
[junit] at 
org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:710)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at org.apache.hadoop.util.RunJar.main(RunJar.java:200)

There are other qfiles which pass which use TABLESAMPLE without specifying a 
percent

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2783) Predicate Pushdown failure a view with union when using MapReduce2

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
Predicate Pushdown failure a view with union when using MapReduce2
--

 Key: HIVE-2783
 URL: https://issues.apache.org/jira/browse/HIVE-2783
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


ppd_union_view failure:

[junit] Begin query: ppd_union_view.q
[junit] 12/01/23 16:57:30 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:57:30 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:57:37 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:57:37 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:57:44 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:57:44 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:57:51 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:57:51 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:57:57 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:57:57 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:04 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:04 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:11 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:11 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:16 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:16 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:21 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:21 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:26 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:26 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:31 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:31 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:35 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:35 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:41 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:41 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:46 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:46 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:50 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:50 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:58:55 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:58:55 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:00 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:00 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] 12/01/23 16:59:04 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 16:59:04 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cl

[jira] [Created] (HIVE-2782) New BINARY type produces unexpected results with supported UDFS when using MapReduce2

2012-02-07 Thread Zhenxiao Luo (Created) (JIRA)
New BINARY type produces unexpected results with supported UDFS when using 
MapReduce2
-

 Key: HIVE-2782
 URL: https://issues.apache.org/jira/browse/HIVE-2782
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


When using MapReduce2 for Hive

ba_table_udfs is failing with unexpected output:

[junit] Begin query: ba_table_udfs.q
[junit] 12/01/23 13:32:28 WARN conf.Configuration: mapred.system.dir is 
deprecated. Instead, use mapreduce.jobtracker.system.dir
[junit] 12/01/23 13:32:28 WARN conf.Configuration: mapred.local.dir is 
deprecated. Instead, use mapreduce.cluster.local.dir
[junit] diff -a -I file: -I pfile: -I hdfs: -I /tmp/ -I invalidscheme: -I 
lastUpdateTime -I lastAccessTime -I [Oo]wner -I CreateTime -I LastAccessTime -I 
Location -I LOCATION ' -I transient_lastDdlTime -I last_modified_ -I 
java.lang.RuntimeException -I at org -I at sun -I at java -I at junit -I Caused 
by: -I LOCK_QUERYID: -I LOCK_TIME: -I grantTime -I [.][.][.] [0-9]* more -I 
job_[0-9]*_[0-9]* -I USING 'java -cp 
/home/cloudera/Code/hive/build/ql/test/logs/clientpositive/ba_table_udfs.q.out 
/home/cloudera/Code/hive/ql/src/test/results/clientpositive/ba_table_udfs.q.out
[junit] 20,26c20,26
[junit] < 2 10val_101
[junit] < 3 164val_164  1
[junit] < 3 150val_150  1
[junit] < 2 18val_181
[junit] < 3 177val_177  1
[junit] < 2 12val_121
[junit] < 2 11val_111
[junit] —
[junit] > 3 120val_120  1
[junit] > 3 192val_192  1
[junit] > 3 119val_119  1
[junit] > 3 187val_187  1
[junit] > 3 176val_176  1
[junit] > 3 199val_199  1
[junit] > 3 118val_118  1
[junit] Exception: Client execution results failed with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] junit.framework.AssertionFailedError: Client execution results failed 
with error code = 1
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.
[junit] at junit.framework.Assert.fail(Assert.java:50)
[junit] at 
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_ba_table_udfs(TestCliDriver.java:129)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[junit] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[junit] at java.lang.reflect.Method.invoke(Method.java:616)
[junit] at junit.framework.TestCase.runTest(TestCase.java:168)
[junit] at junit.framework.TestCase.runBare(TestCase.java:134)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:110)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:128)
[junit] at junit.framework.TestResult.run(TestResult.java:113)
[junit] at junit.framework.TestCase.run(TestCase.java:124)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[junit] at junit.framework.TestSuite.run(TestSuite.java:238)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
[junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to 
get more logs.)
[junit] Cleaning up TestCliDriver
[junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 10.751 sec
[junit] Test org.apache.hadoop.hive.cli.TestCliDriver FAILED
[for] /home/cloudera/Code/hive/ql/build.xml: The following error occurred while 
executing this line:
[for] /home/cloudera/Code/hive/build.xml:328: The following error occurred 
while executing this line:
[for] /home/cloudera/Code/hive/build-common.xml:453: Tests failed!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2759) Change global_limit.q into linux format file

2012-01-27 Thread Zhenxiao Luo (Created) (JIRA)
Change global_limit.q into linux format file


 Key: HIVE-2759
 URL: https://issues.apache.org/jira/browse/HIVE-2759
 Project: Hive
  Issue Type: Bug
  Components: Testing Infrastructure
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


global_limit.q is in dos format, and has "\ No newline at end of file".
Needs to be changed into linux format, removing all "^M" at the end of each 
line.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2734) Fix some nondeterministic test output

2012-01-20 Thread Zhenxiao Luo (Created) (JIRA)
Fix some nondeterministic test output
-

 Key: HIVE-2734
 URL: https://issues.apache.org/jira/browse/HIVE-2734
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2733) PrimitiveObjectInspector.getPrimitiveCategory() returns DOUBLE for LONG MIN_VAUE(-9223372036854775808)

2012-01-20 Thread Zhenxiao Luo (Created) (JIRA)
PrimitiveObjectInspector.getPrimitiveCategory() returns DOUBLE for LONG 
MIN_VAUE(-9223372036854775808)
--

 Key: HIVE-2733
 URL: https://issues.apache.org/jira/browse/HIVE-2733
 Project: Hive
  Issue Type: Bug
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Created] (HIVE-2717) Could not Name UDF using Reserved Word

2012-01-12 Thread Zhenxiao Luo (Created) (JIRA)
Could not Name UDF using Reserved Word
--

 Key: HIVE-2717
 URL: https://issues.apache.org/jira/browse/HIVE-2717
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Reporter: Zhenxiao Luo
Assignee: Zhenxiao Luo


Parser/SemanticAnalyzer prevent Naming UDF using Reserved Word(eg. sort, format)

Even with the following changes in Hive Grammer:

[~/Code/hive]git diff ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g 
b/ql/src/java/org/apache/hadoop/h
index 888bf47..ec256de 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/Hive.g
@@ -1816,7 +1816,7 @@ functionName
 @init { msgs.push("function name"); }
 @after { msgs.pop(); }
 : // Keyword IF is also a function name
-Identifier | KW_IF | KW_ARRAY | KW_MAP | KW_STRUCT | KW_UNIONTYPE
+Identifier | KW_IF | KW_ARRAY | KW_MAP | KW_STRUCT | KW_UNIONTYPE | KW_SORT
 ;
 
 castExpression
@@ -2091,6 +2091,7 @@ sysFuncNames
 | KW_MAP
 | KW_STRUCT
 | KW_UNIONTYPE
+| KW_SORT
 | EQUAL
 | NOTEQUAL
 | LESSTHANOREQUALTO


Semantic analysis always reports error:

-- Evaluate function against STRING valued keys
EXPLAIN
SELECT sort(array("b", "d", "c", "a")) FROM src LIMIT 1
2012-01-09 11:31:55,134 INFO  parse.ParseDriver (ParseDriver.java:parse(426)) - 
Parsing command:

-- Evaluate function against STRING valued keys
EXPLAIN
SELECT sort(array("b", "d", "c", "a")) FROM src LIMIT 1
2012-01-09 11:31:55,146 INFO  parse.ParseDriver (ParseDriver.java:parse(443)) - 
Parse Completed
2012-01-09 11:31:55,147 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:analyzeInternal(7445)) - Starting Semantic Analysis
2012-01-09 11:31:55,148 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:analyzeInternal(7475)) - Completed phase 1 of Semantic 
Analysis
2012-01-09 11:31:55,148 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:getMetaData(942)) - Get metadata for source tables
2012-01-09 11:31:55,149 INFO  metastore.HiveMetaStore 
(HiveMetaStore.java:logInfo(528)) - 0: get_table : db=default tbl=src
2012-01-09 11:31:55,200 INFO  hive.log 
(MetaStoreUtils.java:getDDLFromFieldSchema(457)) - DDL: struct src { string 
key, string value}
2012-01-09 11:31:55,200 DEBUG lazy.LazySimpleSerDe 
(LazySimpleSerDe.java:initialize(195)) - 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe initialized with: 
columnNames=[key, value] columnTypes=[string, string] separator=[[B@3bb20e65] 
nullstring=\N lastColumnTakesRest=false
2012-01-09 11:31:55,200 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:getMetaData(1021)) - Get metadata for subqueries
2012-01-09 11:31:55,201 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:getMetaData(1035)) - Get metadata for destination tables
2012-01-09 11:31:55,201 INFO  parse.SemanticAnalyzer 
(SemanticAnalyzer.java:analyzeInternal(7478)) - Completed getting MetaData in 
Semantic Analysis
2012-01-09 11:31:55,203 INFO  hive.log 
(MetaStoreUtils.java:getDDLFromFieldSchema(457)) - DDL: struct src { string 
key, string value}
2012-01-09 11:31:55,203 DEBUG lazy.LazySimpleSerDe 
(LazySimpleSerDe.java:initialize(195)) - 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe initialized with: 
columnNames=[key, value] columnTypes=[string, string] separator=[[B@12e84396] 
nullstring=\N lastColumnTakesRest=false
2012-01-09 11:31:55,222 DEBUG parse.SemanticAnalyzer 
(SemanticAnalyzer.java:genTablePlan(6598)) - Created Table Plan for src 
org.apache.hadoop.hive.ql.exec.TableScanOperator@5e9ea579
2012-01-09 11:31:55,223 DEBUG parse.SemanticAnalyzer 
(SemanticAnalyzer.java:genSelectPlan(2117)) - tree: (TOK_SELECT (TOK_SELEXPR 
(TOK_FUNCTION sort (TOK_FUNCTION array "b" "d" "c" "a"
2012-01-09 11:31:55,225 DEBUG parse.SemanticAnalyzer 
(SemanticAnalyzer.java:genSelectPlan()) - genSelectPlan: input = 
src{(key,key: string)(value,value: 
string)(block__offset__inside__file,BLOCK__OFFSET__INSIDE__FILE: 
bigint)(input__file__name,INPUT__FILE__NAME: string)}
2012-01-09 11:31:55,234 ERROR ql.Driver (SessionState.java:printError(380)) - 
FAILED: Error in semantic analysis: Line 5:7 Arguments length mismatch 'sort': 
The function SORT(array(obj1, obj2,...)) needs one argument.
org.apache.hadoop.hive.ql.parse.SemanticException: Line 5:7 Arguments length 
mismatch 'sort': The function SORT(array(obj1, obj2,...)) needs one argument.
at 
org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory$DefaultExprProcessor.process(TypeCheckProcFactory.java:810)
at 
org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher.dispatch(DefaultRuleDispatcher.java:89)
at 
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatch(DefaultGraphWalker.java:88)
at 
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.walk(DefaultGraphWalker.java:125)
at 
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.s