# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. ############################################################################### # curl command tests for templeton # # #use Yahoo::Miners::Test::PigSetup; #PigSetup::setup(); #my $me = `whoami`; #chomp $me; $cfg = { 'driver' => 'Curl', 'groups' => [ ##============================================================================================================= { 'name' => 'TestHeartbeat', 'tests' => [ { # see HIVE-4808 # this is a long running test, takes 11 minutes # -mt must be greater than mapred.task.timeout (600000ms) 'num' => 1, 'method' => 'POST', 'url' => ':TEMPLETON_URL:/templeton/v1/mapreduce/jar', 'post_options' => ['user.name=:UNAME:','arg=-mt', 'arg=642000', 'jar=:INPDIR_HDFS:/hclient.jar', 'class=sleep', 'statusdir=/tmp/TestHeartbeat_1' ], 'json_field_substr_match' => { 'id' => '\d+'}, 'status_code' => 200, 'check_job_created' => 1, 'check_job_complete' => 'SUCCESS', #there seems to be a race condition: the test fails with exitValue: null even though if you check /tmp/exit # it contains the value. # 'check_job_exit_value' => 0, 'check_call_back' => 1, 'timeout' => 800, }, ] }, ##============================================================================================================= ] }, ;