diff --git ql/src/test/queries/clientnegative/autolocal1.q ql/src/test/queries/clientnegative/autolocal1.q index 6bee177..bd1c9d6 100644 --- ql/src/test/queries/clientnegative/autolocal1.q +++ ql/src/test/queries/clientnegative/autolocal1.q @@ -2,4 +2,14 @@ set mapred.job.tracker=abracadabra; set hive.exec.mode.local.auto.inputbytes.max=1; set hive.exec.mode.local.auto=true; +-- INCLUDE_HADOOP_MAJOR_VERSIONS(0.20) +-- hadoop0.23 changes the behavior of JobClient initialization +-- in hadoop0.20, JobClient initialization tries to get JobTracker's address +-- this throws the expected IllegalArgumentException +-- in hadoop0.23, JobClient initialization only initializes cluster +-- and get user group information +-- not attempts to get JobTracker's address +-- no IllegalArgumentException thrown in JobClient Initialization +-- an exception is thrown when JobClient submitJob + SELECT key FROM src; diff --git ql/src/test/results/clientnegative/autolocal1.q.out ql/src/test/results/clientnegative/autolocal1.q.out index 6af2b4e..4f12bf8 100644 --- ql/src/test/results/clientnegative/autolocal1.q.out +++ ql/src/test/results/clientnegative/autolocal1.q.out @@ -1,4 +1,14 @@ -PREHOOK: query: SELECT key FROM src +PREHOOK: query: -- INCLUDE_HADOOP_MAJOR_VERSIONS(0.20) +-- hadoop0.23 changes the behavior of JobClient initialization +-- in hadoop0.20, JobClient initialization tries to get JobTracker's address +-- this throws the expected IllegalArgumentException +-- in hadoop0.23, JobClient initialization only initializes cluster +-- and get user group information +-- not attempts to get JobTracker's address +-- no IllegalArgumentException thrown in JobClient Initialization +-- an exception is thrown when JobClient submitJob + +SELECT key FROM src PREHOOK: type: QUERY PREHOOK: Input: default@src #### A masked pattern was here ####