资源简介
hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4hadoop2.7.4
代码片段和文件信息
#!/usr/bin/env python
#
# 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.
#
# Given a jenkins test job this script examines all runs of the job done
# within specified period of time (number of days prior to the execution
# time of this script) and reports all failed tests.
#
# The output of this script includes a section for each run that has failed
# tests with each failed test name listed.
#
# More importantly at the end it outputs a summary section to list all failed
# tests within all examined runs and indicate how many runs a same test
# failed and sorted all failed tests by how many runs each test failed.
#
# This way when we see failed tests in PreCommit build we can quickly tell
# whether a failed test is a new failure or it failed before and how often it
# failed so to have idea whether it may just be a flaky test.
#
# Of course to be 100% sure about the reason of a test failure closer look
# at the failed test for the specific run is necessary.
#
import sys
import platform
sysversion = sys.hexversion
onward30 = False
if sysversion < 0x020600F0:
sys.exit(“Minimum supported python version is 2.6 the current version is “ +
“Python“ + platform.python_version())
if sysversion == 0x030000F0:
sys.exit(“There is a known bug with Python“ + platform.python_version() +
“ please try a different version“);
if sysversion < 0x03000000:
import urllib2
else:
onward30 = True
import urllib.request
import datetime
import json as simplejson
import logging
from optparse import OptionParser
import time
# Configuration
DEFAULT_JENKINS_URL = “https://builds.apache.org“
DEFAULT_JOB_NAME = “Hadoop-Common-trunk“
DEFAULT_NUM_PREVIOUS_DAYS = 14
SECONDS_PER_DAY = 86400
# total number of runs to examine
numRunsToExamine = 0
“““ Parse arguments “““
def parse_args():
parser = OptionParser()
parser.add_option(“-J“ “--jenkins-url“ type=“string“
dest=“jenkins_url“ help=“Jenkins URL“
default=DEFAULT_JENKINS_URL)
parser.add_option(“-j“ “--job-name“ type=“string“
dest=“job_name“ help=“Job name to look at“
default=DEFAULT_JOB_NAME)
parser.add_option(“-n“ “--num-days“ type=“int“
dest=“num_prev_d
相关资源
- Hadoop实战-陆嘉恒(高清完整版).pd
-
基于Hba
se的海量视频存储简单模拟 - hadoop-eclipse-plugin-2.7.2180059
- Hadoop深入浅出分享资料
- sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz1517
- 大数据面试宝典最新版本
- hadoop-eclipse-plugin2.6.0+2.7.0+2.7.1
- hadoop-eclipse-plugin-2.6.5
- 《Elasticsearch集成Hadoop最佳实践》--完
- Cloudera Administrator Training
- hadoop-eclipse-plugin-2.7.4
- Hadoop构建数据仓库实践
- Hadoop2.6.0版本windows环境搭建
- Hadoop构建数据仓库实践_王雪迎PDF高清
- hadoop的web上传、、更新、删除和文件
- 中国邮政大数据Hadoop平台投标文件_技
- Hadoop大数据开发基础
- hadoop-3.0.3
- idea hadoop-hdfs插件
- 企业数据湖-Data Lake for Enterprises-原版
- Hadoop权威指南中文高清完整版PDF 第五
- 基于hadoop搜索引擎 离线处理程序
- HadoopWeb项目--网上商城推荐系统
- Hadoop实战-陆嘉恒高清完整版.pdf
- eclipse的hadoop2.7.2插件
- 新尚硅谷大数据技术之Hadoop入门
- Hadoop权威指南.pdf
- hadoop-eclipse-plugin-1.0.05个版本
- 基于Hadoop的简单网盘实现源代码
- Hadoop大数据分析与挖掘实战
评论
共有 条评论